As it has been said for a long time, the best way to understand jquery or any other code is to read through code written by other people. jQuery is unique because it uses html and css flags to make things happen.
Steps to debug jQuery
I will try and explain the steps by way of a html and jQuery code example below.
Find the trigger word
You see, buttons or links are created with id or class and the id and class names are then used to trigger activity.
In one part of the code, there will be something like
There are events that trigger an action. The event may be on an input field, a list box a submit button or something else; and the event may be a change in the field, a click on a field, a mouse over action, a mouse out action and other such events.
Locate the trigger …