iam working on asp.net mvc.
my problem is when we refresh page and when we click reset button it needs to focus on first textbox. please help me
Code on focus
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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 attend5days leftRegister
Lakshmanan Sethu SankaranarayanRank #124 · 17.7K reputationPosted Jun 5, 2014, 3:35 AM EDT
pls check if it helps
http://stackoverflow.com/questions/7856629/set-focus-on-a-textbox-mvc3
Shweta LodhaRank #31 · 39.8K reputationPosted Jun 5, 2014, 11:01 PM EDT
http://stackoverflow.com/questions/2951405/how-do-i-set-focus-to-a-text-box-html-textboxfor-mvc-2
Anupam SinghRank #643 · 3.7K reputationPosted Jun 5, 2014, 11:05 PM EDT
put this inside script tag in your view
$(function(){