Home > DeveloperSection > Forums > problem in assign event on textbox
sourabh kumar
sourabh kumar

Total Post:6

Points:42
Posted on    March-01-2011 2:46 AM

 JavaScript JavaScript 
Ratings:


 2 Reply(s)
 1254  View(s)
Rate this:
i want to assign dynamically the onmouseover event on textbox control.
give the solution of its


Amit Singh

Total Post:103

Points:721
Posted on    March-01-2011 4:03 AM

hi sourabh,
we assign the event for textbox control as
<script type="text/javascript">
document.getElementById("txtName").onmouseover=function1;
function1()
{
--------
-----
}

</script>

note:
txtName is the id of given textbox.


Amit Singh

Total Post:103

Points:721
Posted on    October-11-2011 9:16 PM

hi,

this one is also help full
<script>
document.getElementById("txtName").setAttribute("onmouseover","function1");
</script>

Don't want to miss updates? Please click the below button!

Follow MindStick