select « Text « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » Text » select 

1. jquery select text    stackoverflow.com

<div>select this<strong>dfdfdf</strong></div>
<div><span>something</span>select this<strong>dfdfdf</strong></div>
how do i use jquery or just javascript to select the value of the div tag but not include any child elements
//output
select this

2. jQuery select based on text    stackoverflow.com

I need to select an element based on its text in jQuery. For instance:

<span>this text</span>
I know I can use .contains() to select based on text, but it's not exclusive. I don't want to ...

3. How do I select all text contained in
 using jQuery?    stackoverflow.com

I have a contentEditable iframe with line numbers and text. The line numbers are contained in a div and all text is in a <pre>-element. It looks like this:

<body>

  <div id="line_numbers">
 ...

4. How Can I get the text of the selected radio in the radio groups    stackoverflow.com

as said in the title for example:

<input id="User_Type_0" type="radio" name="User_Type" value="1" checked="checked" />
<label for="User_Type_0">User1</label>
<input id="User_Type_1" type="radio" name="User_Type" value="2" />
<label for="User_Type_1">User2</label>
how can I get the text:User 1

5. Clear Text Selection with JavaScript    stackoverflow.com

Simple question which I can't find the answer to: how can I use JavaScript (or jQuery) to deselect any text which may be selected on a webpage? E.G. user clicks and ...

6. How can I stop text from being selected?    stackoverflow.com

In my web app the user can sometimes click the same button a number of times, skipping through messages and things, causing the </a> to be selected. So how can I prevent ...

7. jQuery: Setting select list 'selected' based on text, failing strangely    stackoverflow.com

I have been using the following code (with jQuery v1.4.2) to set the 'selected' attribute of a select list based on its 'text' description rather than its 'value':

$("#my-Select option[text=" + ...

8. identify select drop-down text using jquery $(this)    stackoverflow.com

I've got several select elements on a page e.g.

<select class="dd" id="dropdown1">
    <option value="123">Option A</option>
    <option value="234">Option B</option>
</select>
<select class="dd" id="dropdown2">
    <option value="456">Option C</option>
</select>
etc ...

9. Jquery: run code when text is selected    stackoverflow.com

I have a HTML document which llokes like this:

<div class="this_can_be_selected">Some text here</div>
<div>No text in the div above is selected</div>

<div class="this_can_be_selected">Some text here</div>
<div>No text in the div above is selected</div>

<div class="this_can_be_selected">Some text ...

10. nodeName for selected text in Javascript    stackoverflow.com

I am making a HTML text editor. For this,i have a div with contenteditable set to true. For making a selected text "bold",i am trying to find node of the selected text. How should ...

11. How to get id from user selected text with jquery?    stackoverflow.com

For example :

<span id=1>this is my </span><span id=2>selected text</span><span id=3> but this is not selected</span>
I want to catch the list of span id of the text selected by user with jquery. In ...

12. jQuery get text with $.each from a multiple select list    stackoverflow.com

I'm trying to get the text of some selected options from a select list with the jQuery.each function. I select all selected options like this: $('#IdOfSelect option:selected')
This works just fine. If I iterate ...

13. Selecting text from ajax success response don't work    stackoverflow.com

I'm trying to insert form data through ajax and then get the ROW id of inserted data in order to lead the user to a new URL where he/she could see ...

14. How to get the selected text in a textrarea using raw JavaScript or jQuery?    stackoverflow.com

Possible Duplicate:
How to get selected text in textarea?
Are there any cross browser way to get just the selected text in a textarea? By selected ...

15. How to check if text has been selected?    stackoverflow.com

Possible Duplicate:
How to know if the text in a textbox is selected?
Is there any way to check if user has selected text inside input ...

16. how to select text naturally with jquery?    stackoverflow.com

Due to copyright laws and licensing agreements, I'm unable to allow copy+paste on certain parts of text we're displaying. So selecting is disabled and right click is disabled. It ...

17. selecting pure text in jquery    coderanch.com

19. How to select text from another web page?    forum.jquery.com

20. text selection problems    forum.jquery.com

This table is editable, meaning I have an event to swap in a input box into the table cell. What I want is to keep the table contents unselectable (I have an excel like cell selection in place instead), but I need the input box text selectable, and for the life of me I cannot get it to work. ...

21. Select a text    forum.jquery.com

22. edit selected text    forum.jquery.com

Hey all, I have somewhat an issue in jquery i have a dropable content from one list to another easy enough, on dropping i dynamically create divs that are editable. So now i have a div and want to be able to highlight text and then click on a few buttons that give options such as Bold Underline and Italics. I ...

23. Text selection    forum.jquery.com

24. [jQuery] Detecting Selected Text    forum.jquery.com

Is there a particularly jQuery-ish way to determine if there is textselected on the screen? I've googled around for some code on thissubject, but I want to be sure that whatever I use is cross-browsercompatible. It's been my experience that if I let jQuery do the heavylifting for me, that my solutions are always compatible across themajor browsers.What I'm specifically needing ...

25. get selected text    forum.jquery.com

26. [jQuery] Select Text    forum.jquery.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.