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

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: How we can fire events in javascript? (/showthread.php?tid=30033)



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