jQuery Event Handling: Binding and Unbinding

preview_player
Показать описание

Video tutorial to demonstrate binding and unbinding of events in jQuery.

Events are objects which has data and methods in it.

In this tutorial we are taking 3 paragraph tags with some text inside it.
Once the user clicks on a paragraph, we display the string in the paragraph in a alert box.

jQuery Video Tutorial List:
Рекомендации по теме
Комментарии
Автор

Very nice Satish.I enjoyed it very much and can't wait to dig in to the rest of your videos. .

I do have a question, if you don't mind. I've seen some jQuery code binding events that use an (event) as a parameter, such as
if(event.which==13){ . . ."

I don't understand what the "(event)" is used? When and why must one use this in their code?

Colstonewall