I have an option-select HTML thing. The JS code:
var inviteds = $('#clientMenuEvents_edit select[name="everybody"]');
inviteds.find('option').sort (function(a,b) {
return a.innerHTML.toLowerCase() > b.innerHTML.toLowerCase() ? 1 : -1;
});
I debugged the function, a.innerHTML.toLowerCase()
gives the string, but it just can't order that list, nothing happens. Everybody does it like that - but it acts like I didn't do anything.