0

Hi,

I am facing an issue while using the PreSaveAction method. Currently I have 2 buttons in my form,

<SharePoint:SaveButton runat=”server” ControlMode=”Edit” id=”savebutton2″ Text=”Approve”/>

<SharePoint:SaveButton runat=”server” ControlMode=”Edit” id=”savebutton3″ Text=”Reject” />

In PreSaveAction method, i would like to identify which Button is clicked. For that currently I am using ,

var selectedBtnName = this.event.target.value;
var selectedBtnId = $(‘input[value$=”‘+selectedBtnName +'”]’).attr(‘name’);

This is working fine in Chrome browser. But this.event is “undefined” while trying in Firefox.  Please help me to solve this issue ASAP.

Thanks in advance

Anju

(Visited 45 times, 1 visits today)
Add a Comment