Generally speaking, jQuery plugins are namespaces on the jQuery scope. You could run a simple check to see if the namespace exists: if(jQuery().pluginName) { //run plugin dependent code } ,If we're talking about a proper jQuery plugin (on that extends the fn namespace), then the proper way to detect the plugin would be: if($.fn.pluginname != … Continue reading How can I check if a jQuery plugin is loaded?
Tag: jquery
//reload 1 iframe $('#iframe').contentWindow.location.reload(true); //reload all iFrames $('iframe').each(function() { this.contentWindow.location.reload(true); }); //by changing source to the same source $('iframe').attr('src', $('iframe').attr('src'));
the fastest way to get selected value text from a dropdown is using: $('#dropdown_id').children("option:selected").text()
$("iframe").contents().find("#someDiv"); but this will give you the error "Unsafe JavaScript attempt to access frame"
// Returns string Ex: "1.3.1" $().jquery; // Also returns string Ex: "1.3.1" jQuery.fn.jquery;