I have a button of type Submit
with text as edit
for POST method in asp.net HTML.BeginForm.I want to replace it with a glyphicon-edit
.How to achieve the same functionality as input
.I am able to achieve the functionality using Edit button.I want the same functionality using glyphicon-edit
HTML
<br />
<input type="submit" class="btn btn-default" name="Editing" value="Edit" />
<div class="circle">
<div class="glyphicon glyphicon-edit"></div>
</div>
CSS and Look of glyphicon-edit
is included in a fiddle here
What are Glyphicons? Glyphicons are icon fonts which you can use in your web projects. Glyphicons Halflings are not free and require licensing, however their creator has made them available for Bootstrap projects free of cost.
Use the <span> or <a> element. Set the class attribute of the <span> or <a> element as glyphicon then a space and then glyphicon-iconname.
You can write a button with a type submit
and wrap an glyphicon inside
<button type="submit">
<span class="glyphicon glyphicon-edit"></span>
</button>
Edit :
background:none;border:none;padding:0;
) and apply new styleoutline:none
should solve the outline border issue onclick.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With