how can i get the number inside a html code.
For example:
<a href="#">Comments</a>(10)
How can i get the 10 from the line of code above.
This includes removing the link html , comment word , plus the brackets around the number “10”
How can do this using jquery/javascript?
Given html
jQuery:
If you have a string (
'<a href="#">Comments</a>(10)'), then