PROBLEM IN ASSIGN EVENT ON TEXTBOX

sourabh kumar

Total Post:6

Points:42
Posted by  sourabh kumar
 1557  View(s)
Ratings:
Rate this:
i want to assign dynamically the onmouseover event on textbox control.
give the solution of its
  1. Amit Singh

    Post:103

    Points:721
    Re: problem in assign event on textbox

    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.

  1. Amit Singh

    Post:103

    Points:721
    Re: problem in assign event on textbox

    hi,

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!