helper - <button type="submit"> instead <input type="submit"> cakephp jsHelper -
with cakephp jshelper :
<?php echo $this->js->submit(__('search'),array('class'=>'btn btn-info','div'=>false));?>
this generate :
<input class="btn btn-info" id="submit-561877025" type="submit" value="search"/>
but need :
<button class="btn btn-info" id="submit-561877025" type="submit">search</button>
is there dynamic solution ?
<?php echo $this->js->submit(__('search'),array('class'=>'btn btn-info','type'=>'button','div'=>false));?>
Comments
Post a Comment