February 2014
Intermediate to advanced
410 pages
8h 15m
English
Having the ability to detect if a user has clicked on elements other than buttons can provide additional flexibility to your web application. You can attach click events to any HTML elements, just as we did with the buttons in the previous recipe.
To work through this recipe, we are first going to need a blank HTML page named recipe-2.html, the same as in the other recipes. Remember that you need to have the latest version of jQuery downloaded and easily accessible on your computer so that it can be included in recipe-2.html.
To understand how you can detect user clicks on elements other than buttons, perform the following steps:
recipe-2.html page you have just created. ...Read now
Unlock full access