CodeIgniter Forums

Full Version: How we can fire events in javascript?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

[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");
});

El Forum

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

jQuery Events

InsiteFX