IT Solutions
Search This Blog
Wednesday, October 10, 2012
How to set event and attribute to a control from javascript.
var objMy = document.getElementById("ddlMy"); //objMy.setAttribute(name,value); objMy.setAttribute("onchange","test();"); function test() { alert('test'); }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment