Hack Forums
How to make a button an input button? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: How to make a button an input button? (/showthread.php?tid=5110648)



How to make a button an input button? - Skidy - Dec 27, 2015

[Image: 6ed04425cf637850fe5679c64b3a94ce.png]

How can I make a button act as a input button would?


* - JIM NASIUM'S GYMNASIUM - Dec 27, 2015

This question makes no sense at all.

Code
<input type='button'/>
and
Code
<button type='button'/>
both behave as buttons with no default behavior specified.


* - Skidy - Dec 27, 2015

(Dec 27, 2015 02:15 PM)Mrparkers Wrote:  This question makes no sense at all.

Code
<input type='button'/>
and
Code
<button type='button'/>
both behave as buttons with no default behavior specified.

Well when my button is this:

Code
<button type="button" class="btn btn-default">
            <span class="glyphicon glyphicon-search" type="submit" value="Search"></span> Search
          </button>

and submit button is this:

Code
<input type="submit" value="Search" class="Search_form_2">

The button doesn't behave as a submit button to submit my form. When I click the button nothing happens.