<input name="activeCode" id="activeCode" ontouchstart="this.type='number'" onfocus="this.type='text'"/>