I am upcoming learner with jquery. Does anyone know how to give set two attributes at once that fit into the below example?
For the moment I am only able to give it one attribute. My goal is to able to give two attributes to a select box 'disabled' and 'hidden'
obj.nextAll('.update').html('<option value="">----</option>').attr('disabled', true);
Same things goes for removing the attributes: 'disabled' and 'hidden'
obj.next('.update').html(data.list).removeAttr('disabled');