This time I will share jQuery Plugin and tutorial about Auto Wrap ® In HTML sup Tag – jQuery sup-reg.js, hope it will help you in programming stack.
sup-reg.js is a dead simple jQuery plugin that automatically wraps registered trademark sign (®) around HTML <sup> tag with a given CSS class.
Install & Download
2 |
$ npm install sup-reg --save |
5 |
$ bower install sup-reg --save |
How to use it:
1. Download and import the sup-reg.js script after jQuery.
2 |
integrity = "sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" |
3 |
crossorigin = "anonymous" > |
5 |
< script src = "sup-reg.js" ></ script > |
2. This will wrap all the trade marks around HTML <sup> tags with the CSS class of sup-reg
. So that you can style the trade marks whatever you like in the CSS.
2 |
< p >jQueryScript < sup class = "sup-reg" >®</ sup ></ p > |
3. Style the trade marks whatever you like.
This awesome jQuery plugin is developed by megasmack. For more Advanced Usages, please check the demo page or visit the official website.