not allow typing in a text field html, can use JavaScript or any function of html -


I have a text field html and there is a decade in it, this letter does not allow writing, but numbers are allowed . I need that they do not allow numbers.

This is the function you want to do:

Javascript :

  document.getElementById ("date"). Onkeyup = function () {return false; }   

and here HTML :

  & lt; Input id = "date" type = "date" & gt;   

See this. Hope it helps.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

Installing croogo for cakephp -