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 131 posted 7 years ago by bassdas
Removes anything that isn't a digit from input on complete.
0 76 posted 8 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 55 posted 8 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 183 posted 9 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 50 posted 9 years ago by cryothic
Finds word "AGM" and replace with acronym or abbr title.
2 58 posted 9 years ago by vagrantradio
Obvious but useful for styling Wordpress pagination
0 63 posted 10 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 105 posted 11 years ago by 1man
« Prev 1 Next »