Write Effective jQuery Code
You have to keep some points in mind while writing jQuery code: 1.Keep DOM insertion as min as possible.For e.g Instead of inserting multiple <li> elements in DOM, wrap it...
jQuery making the javascript simpler
You have to keep some points in mind while writing jQuery code: 1.Keep DOM insertion as min as possible.For e.g Instead of inserting multiple <li> elements in DOM, wrap it...
$("table tr").each(function(){ alert($(this).attr("customAttr")); }); Above code will iterate through each tr,but if we want to exclude header tr via jQuery then use the following set of lines: $("table tr").not(":first").each(function(){ alert($(this).attr("customAttr"));...
There is always a question arises in my mind that is my javascript source is secure or not? Since anyone on the net can include my page, and then can...
Bind the onError event. $('selector').bind('onError',{msg:"error occured"},false); This event is triggered whenever error is occurred as below: $("selector").trigger("onError",handler); function handler(e) { alert(e.msg); }
Have you ever thought to create dynamic designs or CSS code, then you must have searched for the variables in CSS, how to declare some static variables in CSS which...
You all will be happy to know that i will soon launch the jquery schools on internet. The blog will contain all the details about jQuery and its related articles....