Click here to Skip to main content
15,887,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i have a button called Select.. i written the server side event for select button(select_click). How to call the select button event in javascript.

Thanks
M.Dhanasekaran
Posted

Use jQuery and use this code.
$("#id_of_button").click();
 
Share this answer
 
Comments
Manfred Rudolf Bihy 18-Apr-11 9:49am    
Correct! 5+
I'm always for jQuery since it makes a whole lot of stuff soooo much easier.
(I was a prototype kind of guy before that which also has it's merits)
Try this,
document.getElementById("button id").click();
 
Share this answer
 
Comments
dhanasekaranm 18-Apr-11 5:40am    
Thanks. Now its working fine
Toniyo Jackson 18-Apr-11 5:41am    
If it works, vote and accept the answer
Manfred Rudolf Bihy 18-Apr-11 9:51am    
Until OP votes and accepts your solution take my 5+. :)
Toniyo Jackson 18-Apr-11 9:53am    
Thanks
Manfred Rudolf Bihy 18-Apr-11 9:50am    
Please vote for this solution if it is good and if it also solved your problem you should accept it as "the solution".
Thanks for your cooperation!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900