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 -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -