Dear Experts,
i need a javascript to add an attribute in a class...
Here is the below Html code of HTML SELECT..
<select id="ddl_State" name="validation-select" class="select validate[required]">
<option value="">Please select</option>
<option value="1">First option</option>
<option value="2">Second option</option>
<option value="3">Third options</option>
</select>
I need a javascript code for add an attribute in this class.. Eg :
<select id="ddl_State" name="validation-select" class="select validate[required] Disabled">
Here i have added "Disabled" in the class attribute.....
How can i add this using javascript, without delete the existing class attributes....
Thanks and Regards,
Dileep