Find all the elements with an id The answer to the question is $(“[id$=’txtTitle’]”), as Mark Hurd answered, but for those who, like me, want to find all the elements with an id which starts with a given string (for example txtTitle), try this (doc) : $(“[id^=’txtTitle’]”) If you want to select elements which id […]
Articles Tagged: jQuery
Hosted Libraries
jQuery 1 snippet: <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script> 2 snippet: <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js”></script> site: jquery.com versions: 2.1.4, 2.1.3, 2.1.1, 2.1.0, 2.0.3, 2.0.2, 2.0.1, 2.0.0, 1.11.3, 1.11.2, 1.11.1, 1.11.0, 1.10.2, 1.10.1, 1.10.0, 1.9.1, 1.9.0, 1.8.3, 1.8.2, 1.8.1, 1.8.0, 1.7.2, 1.7.1, 1.7.0, 1.6.4, 1.6.3, 1.6.2, 1.6.1, 1.6.0, 1.5.2, 1.5.1, 1.5.0, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4.0, 1.3.2, 1.3.1, 1.3.0, 1.2.6, 1.2.3 note: […]
Loading jQuery from the Google CDN
Tested on: WordPress 3.0.1 // even more smart jquery inclusion 🙂 add_action( ‘init’, ‘jquery_register’ ); // register from google and for footer function jquery_register() { if ( !is_admin() ) { wp_deregister_script( ‘jquery’ ); wp_register_script( ‘jquery’, ( ‘https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js’ ), false, null, true ); wp_enqueue_script( ‘jquery’ ); } } Â