$('#tags option').each(function(index, item) {
// var i = this;
//if (jQuery.inArray(i.value, idArray)) {
// i.attr('disabled', 'true');
// }
item.attr('disabled', 'true');
});
How to I convert the item parameter into Jquery object so I can use all the nicety’s like .attr?
Thanks
$(item).attr('disabled', 'true');should workSee: http://docs.jquery.com/Core/jQuery#elements