I have a quick, beginners-type-question. If I were to use jQuery and some other framework, would the following statement be problematic:
jQuery(document).rea
When using multiple libraries that make use of $
, the common practice is to use noConflict mode and reassign the $
for jQuery to something else.
var $jq = jQuery.noConflict();
$jq( function() {
$jq("input[name='password']").focus( function() {
$jq("input[value='login']").attr("checked","checked");
});
});
In plugin development, a common way to handle this is to pass `$' in as a parameter to a function defining your plugin definition and applying the function to the jQuery object.
;(function($) {
...
})(jQuery);