HTML
To Remove the % and $ from a string <br/>
given number = 100% <br/>
After : <div></div>
JQUERY
- var num='$100%';
- $('div').text(num.replace(/\,/g, '').replace(/\$/g, '').replace(/\%/g, ''));
OUTPUT
To Remove the % from a string
given number = 100%
After :
100
Kindest Regards
Sibeesh
www.sibeeshpassion.com