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

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -