Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How do I stop....

How can I stop a input box on my form from being able to be changed?


Comments

  • With javascript. Inside your input box tag, put the following:



    input type="text" name="text1" onkeypress="text1_onkeypress"





    and the client side script is as follows:



    function text1_onkeypress() {

    alert("You cant type here!!");

    return false;

    }





    : How can I stop a input box on my form from being able to be changed?

    :






Sign In or Register to comment.