Jquery div class ordering -


can tell me why works:

$('form.myclass#myid  #myid2.myclass2').attr("checked","checked"); 

... doesn't:

$('form.myclass#myid  .myclass2#myid2').attr("checked","checked"); 

why ordering of id followed class important?

thanks,

alan.


Comments