I have a HTML page with input text elements and textarea elements.
Text typed into these elements can be selected with the mouse cursor. Clicking anywhere on the text value places cursor in that location.
In some cases, the mouse functions stop working. Cannot use the mouse to place cursor or to highlight/select text.
So far, I have ...
I want to display a license agreement in a scrolling textarea and detect when the user has scrolled to the bottom of the text area, then enable the submit button.
Is there a way to do that?
...
this question is similar to my previous hover question (http://stackoverflow.com/questions/1851141/converting-css-hover-to-jquery-hover) but the answer will be different because it involves a click function and two bgs.
I am building a contact page, and when the user clicks on one of the input fields, I want the background of the input ...
How can i utilize jQuery to insert text at the cursor into a textarea.
...
I'm creating a browser based QC/data entry app that will let people edit OCRed files, which naturally have tons of errors. Chunks of data are put in textareas so they can be checked, but the red underlines only appear when the user manually puts the cursor in a misspelled word.
Is there a way to force WebKit to add the little red spell ...
<form>
<textarea name="test" value="no">
hi
</textarea>
<input type="submit" />
</form>
hi or no,and reason?
I ask this question because I see javascript editors use textarea.value = html; to restore the content when submit,why they do this if value attribute is useless?
...
Why do they prefer using iframe and turn on design mode by .contentWindow.document.designMode = "on" instead of directly using textarea?
...
hi there, how can i get cursor position in a textarea using jQuery? thanks
...
I'm building a custom options panel in Wordpress. One of the options I'd like to offer is the ability to add text and html to the footer. I can enter simple tags like, bold - but when you add a URL crazy stuff happens. I did some googling and found "stripslashes", alas that doesn't work either.
The code below is part of a giant case sta...
I've tried this on many browsers ( via browsershots ) and universally the scrollbars overflow and hide the green border.
I don't want overflow: hidden because that clips the scrollbars.
How do I get the scrollbars inside the border, instead of obscuring the border?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:/...
I want to have a textarea which displays line numbers on the left. Wrap should be set to "off" (so that horizontal scrolling is available). I want to have my page as a single self-contained .html file (there will be no graphics), so I'd like to avoid any 3rd party frameworks.
Which way should I go? How would you do this?
...
I'm working on a custom tokenfield based on textarea. The idea is to have a textarea with div elements absolutely positioned above, so it looks like they are in text area.
It was pain so far, but I managed to do pretty much everything, except one thing.
Is it even possible in javascript to set reverse-selection? When you put a cursor s...
Hello.
So here's the thing...
I'm writing an online application where I save some texts to the database.
There are like 5 "textarea"-s and 5 "input type=text"-s.
I'm also implementing a search to easily find and edit the DB entries. A new select window is displayed(using prototype and ajax), and when clicking on any of its entries the b...
Hi, hi want to know the index of the first character displayed in a scrollable TextArea in Flex3 and i need the last character's index too.
Any ideas ?
Thanks
...
I would like to turn off the built-in spellcheck functionality in certain browsers such as Firefox and Opera on a textarea that contains HTML embed code for visitors to copy and paste. This can be done with following attribute:
spellcheck="false"
However, this causes a validation error for XHTML Strict. Also, it doesn't work properly i...
I have a regular expression that returns us and canada zipcodes as follows.
((?<US>\d{5})|(?<Can>\b[A-Z-[DFIOQUWZ]]\d[A-Z-[DFIOQU]]\ +\d[A-Z-[DFIOQU]]\d\b))
I need to do this in java script or jquery. An application that can extract only these values. For example someone could simply paste a document into the textarea, click a butto...
I am trying (and failing) to implement a drag&drop mechanism into an HTML textarea.
Drag&Drop mechanism is relatively easy with jQuery or Scriptaculous (we use both), so I am willing to accept an answer that uses either of these two.
Problem is, I cannot seem to find a way to read or set the insertion point.
What I ultimately want t...
Hi all, i need to know which part of the text is been modified by the user inside a Flex TextArea. I'm listening to TextArea's Event.CHANGE and my code run on everychange but i don't know what the user have done to the text and it's too long to process it again at every keypress or paste
We are still with Flex 3.5 but i may consider Fle...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
<style type="text/css">
#textarea1 {
width: 100%;
overflow:hidden;
}
#...
Is there any way to make textarea display lines in colors? What I am trying to achieve is every second line colored, i.e. white,grey,white,grey,white,grey... for better readability. Users are supposed to write in lots of stuff, as in "enter names, each one from new line".
I do use jQuery anyway so if they made some simpler solution for ...