How do I use JavaScript to detect
to become one
?
I trie
Try this
$('body').html($('body').html().replace(/()+/g,""));
It will replace n number of into one.
Demo