0

HTML CODE:

<div class="s1" contenteditable="true" style="height: 58px; width: 58px; overflow: hidden; color:white; position: relative;">&#160;</div>

I want to remove space by click on this div and also restrict with input only single alpha character.

please help

Jaromanda X
  • 53,868
  • 5
  • 73
  • 87
Ashish
  • 13
  • 2
  • What have you tried? Show us the effort you've put in before asking and you will get better help. – qwelyt Sep 06 '16 at 05:41
  • `` form input is not working in IPAD so I am using `
     
    ` this for takking a input from user and also make restriction for that user can only enter sing alpha character please help
    – Ashish Sep 06 '16 at 08:20
  • If you want to do this without using JS you *have* to use ``. The attribute you want then is `maxlength`. This cannot be set on a `
    `, look at http://stackoverflow.com/questions/21876085/max-length-property-for-an-editable-div. Otherwise you have to use JS. And there are quite a handful of resources for how to do that.
    – qwelyt Sep 07 '16 at 05:43

0 Answers0