jQuery replaceText v1.1
Recently, Paul Irish asked me how I would go about “wrappifying” text on a page with span tags, presumably for some CSS styling.. and he knows that if he mentions something enough, there’s a pretty good chance I’ll make a jQuery plugin for it!
That being said, jQuery replaceText will replace text in specified elements. Note that only text content will be modified, leaving all tags and attributes untouched.
As always, check out the plugin page to find out why you’d want to use this plugin (along with examples and documentation), and let me know what you think!
- « Previous |
- Recent News |
- All News |
- Next »
Post A Comment
Please Donate!
Your generous donation encourages me to continue developing and updating my code!
All Featured Projects
jQuery: BBQ, Bookmarklet Generator, cond, doTimeout, equalizeBottoms, getObject, hashchange event, iff, longUrl, Message Queuing, Misc plugins, outside events, postMessage, replaceText, resize event, Star Wipe, throttle / debounce, Untils, unwrap, URL Utils, urlInternal
JavaScript: Battlelog Hacks, Bookmarklets, Debug, Emotify, Library Boilerplate, Linkify
Other: Finder Copy Open Window Paths, Multi-Firefox Launcher, Safari View Source in TextMate, Simple PHP Proxy, Simplified
a
,b
,i
,br
,p
,strong
,em
,pre
,code
.<pre class="brush:js"></pre>
(supported syntax highlighting brushes:
js
,css
,php
,plain
,bash
,ruby
,html
,xml
)<
instead of<
and>
instead of>
in the examples themselves.