kishan66
asked on
Javascript to raise an form click event, asp.net 3.5 C# , VS 2010
Hi,
When i click Server control "Save" button ...
using JavaScript, i want to generate an event as if i clicked on form area (not on any control in the form) before execution of the "save: button code.
Thanks
When i click Server control "Save" button ...
using JavaScript, i want to generate an event as if i clicked on form area (not on any control in the form) before execution of the "save: button code.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi kishan66,
skip my previous comment .
Post the code which can show your issue .
skip my previous comment .
Post the code which can show your issue .
ASKER
Assume i enter some thing in a textbox (control within form) ....my focus is still in textbox.
now when i click on "Save" button (which is in a ribbon control).. using javascript, i want to loose focus of that textbox (inthis example) and then submit the form.
Problem : when my focus is still in textbox , even if i click save the changed text value is not retained when the form is submitted.
works fine when i click on anyother control or any where else on form.