CakePHP - Remove Increment buttons from FormHelper generated number field -
i've had trawl through api , documentation , can't see way programatically disable increment buttons cakephp formhelper adds decimal fields.
does know proper way in view, other alternative remove them jquery, can do, rather 'properly' if there way.
cheers
my guess increment buttons not in html, generated browser if utilize 'number' input (part of new html 5 input types), e.g. . cakephp automatically seek match right type of input, depending on fieldtype , name (e.g. 'email' inputs email-adresses. can override manually specifying input type, this:
echo $this->form->input('myfieldname', array('type'=>'text'));
this should output 'regular' text-input, no 'special' treatment browser;
<input type='text' .......>
although, lose positive sides of these html5 inputs, automatically validating values , disallowing non-numeric characters. there may options 'suppress' decoration (step buttons), differ each browser.
cakephp cakephp-2.3
No comments:
Post a Comment