Pawan
Pawan

Reputation: 32321

Button type submit is not working in IE browsers

I am doing html5 code for my application presently button type submit is not working in IE browsers any suggestions please.

My code is here:

<form id="rowform{{lrd.id}}" editable-form name="rowform" shown="lrd.isNew" onbeforesave="saveTable($data)"  ng-show="rowform.$visible" >
</form>

Button is out side from the form:

<button type="submit"  form="rowform{{selectedLrd.id}}" class="btn input-small btn-save" >Save</button>

Upvotes: 2

Views: 1430

Answers (1)

Jake Johnson
Jake Johnson

Reputation: 1864

it is recommended that you use either ng-submit or ng-click to handle the submission in a program specific way.

see here: Submitting a form and preventing the default action

I made your example work using ng-submit: http://jsfiddle.net/dakra/U3pVM/

<form id="rowform{{lrd.id}}" ng-submit="save()" editable-form name="rowform" shown="lrd.isNew" onbeforesave="saveTable($data)"  ng-show="rowform.$visible" ></form>

<button type="submit"  form="rowform{{selectedLrd.id}}" class="btn input-small btn-save" >Save</button>

Upvotes: 1

Related Questions