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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -