Welcome To Snipplr


Everyone's Recent jQuery Snippets Tagged replace



« Prev 1 Next »
If someone put text into an input field (or automatic e.g. with a 2d barcode scanner) and you want to replace a part of the input (pattern) then will help this small jquery code snippet.
0 922 posted 11 years ago by bassdas
Removes anything that isn't a digit from input on complete.
0 741 posted 11 years ago by vagrantradio
Working on an ecommerce site I found out from our Japanese distrubutors that they don't have a decimal for the currency since yen doesn't deal in change. 1 yen is a fraction of a cent anyway! This code looks for the Yen since within a <span></span...
0 568 posted 12 years ago by cpres
The option elements in the original select may provide an image and a second line of text by using a data-img and a data-info attribute.
7 1139 posted 13 years ago by peckham
Replaces the pre-defined text of a textbox (e.g. the purpose of the textbox) when the textbox gets focussed, and resets the text if it blurs when empty
1 569 posted 13 years ago by cryothic
Finds word "AGM" and replace with acronym or abbr title.
2 680 posted 13 years ago by vagrantradio
Obvious but useful for styling Wordpress pagination
0 710 posted 14 years ago by vagrantradio
Removed a certain word from a list of links (purely for design reasons). Link length way to long with the link included.
1 977 posted 15 years ago by 1man
« Prev 1 Next »