While browsing the asp.net forums, I came across a question where a user wanted to set focus to the first textbox in a Page. The condition here was the TextBox had to be enabled. Here’s how to do so: HTML Page <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Select the First Enabled TextBox on the Form</title> <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></
![Set Focus to the First TextBox on a Page using jQuery](https://cdn-ak-scissors.b.st-hatena.com/image/square/eba234a4d0180d10c789c4f85e0bc5fa8ec124f0/height=288;version=1;width=512/https%3A%2F%2Flh3.ggpht.com%2F_0j4bzarlOBg%2FSqTzWPJCFQI%2FAAAAAAAAAY4%2F3Lavqao70i4%2Fw1200-h630-p-k-no-nu%2Fimage_thumb.png%3Fimgmax%3D800)