Welcome To Snipplr


Everyone's Recent jQuery Snippets Tagged text



« Prev 1 Next »
Switch between text on button every second
0 92 posted 3 years ago by envane21
Reads all the nodes of the object, including orphaned text that's not wrapped into any tag as well as empty text nodes
0 92 posted 6 years ago by makbeta
A little snippet that I use to hide or show text using jquery
1 108 posted 6 years ago by TwistedEinstein
Simple function to include in your script to enable multi-line text-overflow. See the jsfiddle (http://jsfiddle.net/eAyyL/) for details on the necessary CSS and HTML layout.
0 94 posted 6 years ago by JoshChris
A simple way of displaying a random list item. Could be used to randomly display anything. Demo: jsfiddle.net/uRd6N/ (keep clicking run)
0 239 posted 7 years ago by i-am-andy
This can come in handy for a reset or cancel button. You can clear all inputs within a single div in one line of code. Pretty sexy.
0 103 posted 7 years ago by mattvbiggs
Clear all text fields on focus based on original value with single function. The code checks for a 'title' attribute on each input with class 'text' and compares this to the current value of the field.
0 120 posted 8 years ago by Huskie
This snippet describes how to fill select html element with Text, Value pairs where 'Text' is displayed to the user and 'Value' is actual value to be processed.
0 69 posted 8 years ago by Neven
jQuery to set the width of some text to the width of a given element.
0 90 posted 8 years ago by Narthur
0 85 posted 9 years ago by erraja_07
simple jquery plugin that powers the text auto-resizing that is the basis of textagon.com
0 59 posted 9 years ago by secretgspot
simple jquery code to clear form fields
0 72 posted 9 years ago by jelontok
This snippet will replace any "&amp;" within the text of the container your specify with a <span> that you can target with CSS; fancy!
0 39 posted 9 years ago by dtigraphics
0 61 posted 9 years ago by errkk
very minimal way to get the value and text of a combo box using jquery
1 82 posted 9 years ago by blipz
Just a quick script to enable default text within a form element to be cleared or restored upon focus/blur of a particular element. Should give you roughly the same functionality as the new HTML5 webforms "placeholder" attribute.
0 60 posted 9 years ago by scheurbert
1 56 posted 10 years ago by stancox
Example markup: &lt;p&gt;This is the first part of the text &lt;a class="toggle"&gt;[+]&lt;/a&gt;&lt;span&gt;this part is hidden until clicking the toggle link.&lt;/span&gt;&lt;/p&gt; The script will show and hide text when the toggle link is c...
1 55 posted 10 years ago by mikemetcalf
1 84 posted 10 years ago by jonniespratley
Text beim tippen wo anders anzeigen
1 48 posted 11 years ago by skrippendorf
Removed a certain word from a list of links (purely for design reasons). Link length way to long with the link included.
1 110 posted 11 years ago by 1man
« Prev 1 Next »