//http://api.jquery.com/jQuery.browser/
// Opera
if ($.browser.opera) { $(".yourclass").remove(); }
// Webkit
if ($.browser.webkit) {
alert( "this is webkit!" );
}
// MSI
if ($.browser.msie) {
alert( "this is webkit!" );
}
// Mozila
if ($.browser.mozilla) {
alert( "this is webkit!" );
}
Use this small snippet to do a browser check when loading your jQuery script in your code.
#testBrowser #browser #code #snippet #jQuery
#cesarnog
#testBrowser #browser #code #snippet #jQuery
#cesarnog
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.