I have a textbox and a link button.  When I write some text, then select some of them and then click the link button, selected text from textbox must be show with a messagebox.   How can I do it?    When I click the submit button for textbox below,...
I have div with some text and contenteditable="true". When I single click on this div - works some my scripts, it is not very important. And when I double click on this div - need to edit text in div. Edit text need to be only after double cl...
When implementing a rich text editor in javascript, I need to apply some changes to every text node in selected range. Range object provides interface to get startContainer, endContainer, startOffset, endOffset for the selected range. How can I itera...
I'm looking for a way to track the text selection on a web page. I need some code to be executed whenever there is a change in selection. I have successfully done this on all major desktop browsers, but the same does not seem to be working on Fir...
Consider the following code: (Live demo here - Open in Internet Explorer 7 or 9)  HTML:  <textarea>Hello Stack Overflow</textarea> <input class="a" type="button" value="Click here does the job" /> <div cla...
I'm looking to do something whenever a user finishes making a selection —essentially, on the first mouseup event after every selectstart event, I think— on the page. I want to take that selection and wrap it in an element to be styled via CSS...
I need to make the user to be able to select some text, click a button and make the server remember the selection for the next time.  I've extensively read through SO's questions and answers, tried some libraries, but without luck: haven'...
I'm looking for a robust way to find where the active caret on the page is. I've learned the following things (at least about chrome):   Every input and textarea has its own separate caret Only one caret can be "active" on the page, m...
How can I make buttons to move cursor up, down, left or right in a textarea using jQuery?    $(document).ready(function() {   var clpBrd;   $("textarea")[0].focus(); /*To show to cursor at the end of text*/      $("#cpBtn").click(func...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.