Welcome To Snipplr

Everyone's Recent JavaScript Snippets Tagged text

« Prev 1 Next »
change the button text on wrong answer
0 620 posted 7 years ago by envane21
Sometimes you have some information on your page and your visitors might want to copy it. The easiest way is to provide a mechanism that allows them to simply click a button to do so. You have to paste this code into the head of your web page:
0 589 posted 10 years ago by apphp-snippets
cross-browser way to select all text in a form element, via Jason on Stack Overflow
0 471 posted 10 years ago by charliefmoran
Escribir vertical
0 342 posted 11 years ago by rickyslow
Use whatever is needed to select the input box. $('#searchBoxOuter td.ms-sbcell input') reflects some custom master page html I have so I used that.
0 878 posted 11 years ago by rumremix
0 526 posted 11 years ago by cfergus
0 534 posted 11 years ago by kashif21
This is probably the first vertical JavaScript text ticker that sues tilted letters. Works with Internet Explorer 6x/7x/8x/9x, Firefox 3.6x, Opera 10.5x and Google Chrome 4x/5x/6x. Older Browsers show no ticker.
0 504 posted 12 years ago by fabulant
This will extend jquery to have a :Contains selector that is case insensitive, the :contains selector remains unchanged.
0 458 posted 12 years ago by magicrebirth
This plugin allows you to collapse the inner text so that it adjust into specific width or container width.
1 671 posted 13 years ago by jaff
0 939 posted 13 years ago by powerserve
1 572 posted 13 years ago by enchance
I just noticed in Firefox 3.5.2 that setting `disabled = true` for a focused text input seems to make it impossible to re-focus after setting `disabled = false`. The solution is to blur it before disabling.
0 654 posted 13 years ago by cyberhobo
April 1, 2009, youtube.com
1 435 posted 13 years ago by spraitas
I just put all the functions in here the validateConfPass function uses the key event and the two text fields to change the background color of the confPassword field when it does not equal the pass field
0 565 posted 14 years ago by jlvallelonga
I made this simple JavaScript to save me time. I was sick of having to thumb-bash on a tiny keypad or login to the slow Clickatell site and use their clunky interface (nothing it simpler than 2 text boxes and an OK button). You will need an HTTP A...
1 495 posted 14 years ago by mountainash
0 507 posted 15 years ago by iTony
This utility function attaches listeners to a text field or text area. It supports default text for instructional copy. The original text in the field is used as the instructional/default text. When the box gets focus, it disappears and the user can...
0 491 posted 15 years ago by elli
0 435 posted 16 years ago by jugyo
Trims leading and trailing spaces from a string value and returns the result as a new string.
1 640 posted 16 years ago by splorp
wrap the text that will become a pullquote in a span element and give it the class name "pullquote"
1 533 posted 16 years ago by designerd
Usefull Regular Expressions enhancement. Simplifies standard string operations escaping special chars. And also saves precompiled REs for a speed increase.
1 580 posted 16 years ago by cochambre
« Prev 1 Next »