aspdotnet-suresh offers articles and tutorials,csharp dot net, articles and tutorials,VB.NET Articles,Gridview articles,code examples of 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

jQuery- How to Set Cursor Position in Textbox in

Oct 23, 2012

Here I will explain how to set cursor position in textbox using
jQuery in

In previous articles I explained jQuery Increase or Decrease font size of website, jQuery fadein fadeout effects Example,
Redirect to another page after some time delay, jQuery slideUp slideDown toggle effects and many articles relating to JQuery and Now I will explain how to set cursor position in textbox using jQuery in

To implement this we need to write the following code in aspx page

<html xmlns="">
<head runat="server">
<title>How to set cursor position in textbox using jQuery in</title>
<script type="text/javascript" src="">
<script type="text/javascript">
$(document).ready(function() {
<form id="form1" runat="server">
<b>UserName:</b> <input type="text" id="txtUserName" /><br />
<b>Location:</b> <input type="text" id="txtLocation" /><br />
Live Demo

To check Live demo click on below button to set cursor position in UserName textbox 


If you enjoyed this post, please support the blog below. It's FREE!

Get the latest,, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email


Give your Valuable Comments

Other Related Posts

© 2015 All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.