Welcome To Snipplr


Everyone's Recent jQuery Snippets Tagged text



« Prev 1 Next »
Switch between text on button every second
0 718 posted 7 years ago by envane21
A little snippet that I use to hide or show text using jquery
1 710 posted 10 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 798 posted 10 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 1649 posted 10 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 752 posted 11 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 861 posted 12 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 604 posted 12 years ago by Neven
jQuery to set the width of some text to the width of a given element.
0 709 posted 12 years ago by Narthur
0 670 posted 12 years ago by erraja_07
simple jquery plugin that powers the text auto-resizing that is the basis of textagon.com
0 520 posted 13 years ago by secretgspot
simple jquery code to clear form fields
0 540 posted 13 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 432 posted 13 years ago by dtigraphics
0 533 posted 13 years ago by errkk
very minimal way to get the value and text of a combo box using jquery
1 560 posted 13 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 583 posted 13 years ago by scheurbert
1 590 posted 14 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 505 posted 14 years ago by mikemetcalf
1 710 posted 14 years ago by jonniespratley
Text beim tippen wo anders anzeigen
1 552 posted 14 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 1000 posted 15 years ago by 1man
« Prev 1 Next »