Linked Questions

12 votes
1 answer
22k views

I am trying to somewhat duplicate the "autocorrect" functionality seen in programs like Microsoft Office's Outlook. For starters, anytime a user types "a " (the letter a and a space) at the beginning ...
Wesley Smith's user avatar
  • 19.6k
5 votes
2 answers
16k views

I'm trying to make an input field which automatically puts a questionmark at the end of the typed text while typing. I just came up with this code but obviously it generates multiple questionmarks. $...
user avatar
3 votes
1 answer
12k views

I found this on a different question: setCaretToPos = function(input, selectionStart, selectionEnd){ if(input.setSelectionRange){ input.focus(); input.setSelectionRange(...
Alex's user avatar
  • 66.6k
5 votes
1 answer
14k views

I have a normal textbox, and a lightbox with a text input. I want to keep the user's selection in the textbox, even when the user focuses on the lightbox's text input. Select text in normal textbox ...
nfm's user avatar
  • 20.9k
4 votes
3 answers
5k views

I have a form and textarea, I do auto submit for form after x seconds ... But every time auto submit is done the cursor jumps out of textarea ... so how can I keep the cursor after submitting in old ...
code's user avatar
  • 189
6 votes
2 answers
6k views

I'm trying to implement a textarea which automatcally inserts close parens in React, but whenever I modify the textarea's value property, the cursor jumps to the end of the text being edited. Here's ...
sak's user avatar
  • 3,417
2 votes
2 answers
8k views

In jqgrid inline editing is stared by double clicking in a cell. Cursor is positioned to first editable column. Second click in required to place cursor to the cell which was clicked. How to put ...
Andrus's user avatar
  • 28.3k
2 votes
5 answers
5k views

Why isn't this code working? http://sandbox.phpcode.eu/g/5db40.php <form> <textarea></textarea> </form> <script> $(function(){ $("textarea").keydown(function(e){ ...
genesis's user avatar
  • 51.1k
6 votes
2 answers
6k views

I'm developing a virtual keyboard in jQuery and my problem is: When I click on a key of the keyboard the input loses the focus during the click, and if the number of letters in the input is longer ...
Stack bug's user avatar
2 votes
3 answers
9k views

Possible Duplicate: Use JavaScript to place cursor at end of text in text input element I have an input field which only takes numbers. Can any one please let me know how to place the cursor only ...
Srinivas's user avatar
  • 145
4 votes
2 answers
4k views

I have searched a lot, but did not find anything useful, so I just ask. The context is Rails 2.3.x, the usual javascript libraries. I would like to reach the following: I would like to have something ...
mliebelt's user avatar
  • 15.5k
4 votes
2 answers
5k views

I'm using contenteditable to allow users to edit information on the webpage, but some fields have a length requirement, and I want them to know when they've hit that requirement, so I change the color ...
Josh Sherick's user avatar
  • 2,171
3 votes
3 answers
2k views

Here's a sample form: <form action="#" method="post"> Name:<br /> <input type="text" name="name" value="your name" /><br />...
Mori's user avatar
  • 7,092
2 votes
2 answers
2k views

The textarea in my form, id="Fulltext", is fed by database with many chapters of a book. When the user clicks a link above the text area, <a href="samePage.php?chap=Chapter 5" id="Chapter 5">...
AllThisOnAnACER's user avatar
0 votes
1 answer
4k views

I have a textbox with a live search function. It is working all good except one problem. If I type any characters on it, it just loses its focus. If I set textbox.Focus(), the cursor goes at the ...
warang's user avatar
  • 43

15 30 50 per page