CodeIgniter Forums
How we can fire events in javascript? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: How we can fire events in javascript? (/thread-30033.html)



How we can fire events in javascript? - El Forum - 04-30-2010

[eluser]Unknown[/eluser]
M a new learner..plz help me for this questions
-
Rug Store, Rugs, Oriental Rugs, Rug
Rugs for sale, Rugs Online, Large Rugs, Kilim


How we can fire events in javascript? - El Forum - 04-30-2010

[eluser]pickupman[/eluser]
You use javascript to bind to elements that when an action happens the event is triggered. If you are new to javascript, the easiest way to learn is via jQuery. It offers a simple way to select an item to manipulate like:
Code:
$(".someClass").click(function(){
   alert("You clicked a .someClass element");
});



How we can fire events in javascript? - El Forum - 04-30-2010

[eluser]InsiteFX[/eluser]
Being as you did not give any information on what your trying to do
read this.

jQuery Events

InsiteFX