Getting an error in W3C validator. I append a html statement using query. However, I get this error in W3C:
character "'" is not allowed in the value of attribute "id"
$('<tr id="condition' + num + '" class="clonedInput" ><td class="first-colu…It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.
My code is as follows
$('<tr id="condition' + num + '" class="clonedInput" ><td class="first-column"> </td>
<td><span style="float:left; padding-right: 10px;"><select id="conCol' + num + '"
name="conCol' + num + '" class="standard_select" style="width:147px; background:#fff;">
<option>Telephone Number</option><option>Mobile Number</option><option>Fax Number</option>
<option>iPhone Number</option><option>BB Messenger Id</option><option>Skype Name</option>
<option>Google Talk Id</option><option>MSN Messenger Id</option></select></td>
</tr>').appendTo('#addContact');
<tr>element, and that itsidis set tocondition' + num + '.