adding font awesome image to form_submit |
Hi there,
I am just trying to add the fa-search image to the following button but I just cannot figure out how. PHP Code: <?php echo form_submit(array('id' => 'submit', 'value' => 'Search', 'class' => 'btn btn-default')); ?> Does anyone have any ideas please? Thanks, Doomie
I would do so:
Code: <button type="submit" id="submit" class="btn btn-default"> attachment result image Sin título.png (Size: 1.24 KB / Downloads: 209)
Code: <?php echo form_button(array('name' => 'form_submit', 'type' => 'submit', 'class' => 'btn btn-default', 'content' => '<i class="fa fa-search fa-fw"></i> Search')); ?> |
Welcome Guest, Not a member yet? Register Sign In |