javascript - <button> not working in IE -
i have multiple buttons different functionality, each button behaves submit button. want give different behavior each of button created.
<form action="/createupdate"> <!--here have form elements textbox , checkboxes etc --!> <button name="buttonname" id="submitbutton1" value="create">create</button> <button name="buttonname" id="submitbutton2" value="update">update</button> </form>
if change buttons input type=submit, pressed button sent.
for example:
<form action="/createupdate"> <!--here have form elements textbox , checkboxes etc --> <input type="submit" name="buttonname" id="submitbutton1" value="create" /> <input type="submit" name="buttonname" id="submitbutton2" value="update" /> </form>
Comments
Post a Comment