I'd like to change the type of input field from text to numbers only.I've tried as following
<?= form_input('num', '','class="form-control" id="num", type="number"');?>
but not working
I'd like to change the type of input field from text to numbers only.I've tried as following
<?= form_input('num', '','class="form-control" id="num", type="number"');?>
but not working
Try this one for numeric input:
$data = array(
'name' => 'num',
'id' => 'num',
'class'=> 'form-control',
'type' => 'number'
);
echo form_input($data);