In have save image button and it has click event in my web application. it can not fire that click event when i pressed enter key? it will fire mouse click on the image button.
Ple give me Solution,it will work thrw java script?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Posted Aug 7, 2013, 8:46 PM EDT
Sunny SharmaRank #223 · 11.1K reputationPosted Aug 7, 2013, 9:08 PM EDT
Share your code, I'll help you with that.
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 7, 2013, 9:16 PM EDT
Try like this
in your javascript
in your code
Regards,
Iftikar
Posted Aug 7, 2013, 9:21 PM EDT
{
// call your form submit event.
document.getElementById("YOUR FORM ID").submit();
}
else
return key;
in aspx your code
Kumar S6 reputationPosted Aug 8, 2013, 2:56 AM EDT
this is my screen. when i enter key pressed on the clear button it wont fire click event.
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 8, 2013, 3:02 AM EDT
Regards,
Iftikar