Author Topic: Javascript Onlick alternative (without Jquery)  (Read 10509 times)

Savera

  • Full Member
  • ***
  • Posts: 159
Javascript Onlick alternative (without Jquery)
« on: September 14, 2012, 07:53:06 AM »
Hi,

I have a situation where I have to find alternative to Onclick because I don't want to edit code for submit button in my case. Here is I have this code :
Code: [Select]
<input type="button" id="someID" value="Search" onclick="clickevent();" />

Here I don't want to use  onclick="clickevent();" because then I will need to modify it a lots of places, instead I want to use Javascript only to capture even and do something, in Jquery one can generally do this by using ID.click(function{
Some code here});
But here I need to use plain javascript.

 

X

Do you know?

You can get Free Hosting by participating in IfandBut.com community.
Know more..
Join Now!
anything