jQuery is a JavaScript library which is simple, light-weight, open source, cross browser and simplifies animations, event handling, and developing Ajax-based web applications and promotes rapid application development.
if ($("#element").length)
{
...
} if($("#element").is(":visible") == "true")
{
...
} $(document).ready(function(){
$(document).bind("contextmenu",function(e){
return false;
});
}); $(document).ready(function() {
$().mousemove(function(e)
{
$('#mouseDiv ').html("X Axis = " + e.pageX + " and Y Axis = " + e.pageY);
});
});
<DIV id=mouseDiv></DIV> $(document).ready(function() {
// If the browser type is Mozilla Firefox
if ($.browser.mozilla && $.browser.version >= "1.8" ){
// some code
}
// If the browser type is Opera
if( $.browser.opera)
{
// some code
}
// If the web browser type is Safari
if( $.browser.safari )
{
// some code
}
// If the web browser type is Chrome
if( $.browser.chrome)
{
// some code
}
// If the web browser type is Internet Explorer
if ($.browser.msie && $.browser.version <= 6 )
{
// some code
}
//If the web browser type is Internet Explorer 6 and above
if ($.browser.msie && $.browser.version > 6)
{
// some code
}
}); $(element).removeClass('Class1').addClass('Class2'); Battery coating is the process of applying uniform layers of active materials—such as cathode and…
Let’s face it. Tech buzzwords get thrown around a lot—especially when it comes to how…
In today’s digital world, the boundaries between technology, finance, and innovation are rapidly disappearing. Businesses…
Backyard gatherings like BBQs, family reunions, and garden parties are an exciting way to enjoy…
Marketers are always on the lookout for more effective ways to reach their target audiences.…
Does your phone control your mind more than you control your phone? Modern life exploits…
View Comments
Wonderful post! We will be linking to this particularly great post on our site. Keep up the great writing.
Great post, it is helpful and useful tips. Keep on sharing such a good post.