What does the "@" sign in jQuery selector means? -


what @ sign in following code means ?

$("input[@type=checkbox][@checked]").each(     function() {         ...     } ); 

this xpath convention attribute selection, discontinued 2 versions ago.
should remove @ sign if want selectors work on current version.

alternatively, selector $("input:checkbox:checked") should work same.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -