7
rated 0 times
[
8]
[
1]
/ answers: 1 / hits: 23262
/ 11 Years ago, mon, october 21, 2013, 12:00:00
Using Jquery 1.7.1
I have two divs
<div class=highlightStart></div>
{page content here}
<div class=highlightEnd></div>
Those show up in the page source. But this jquery I added at the bottom of the page is not working:
<script type=text/javascript id=makeHighlight>
$(document).ready(function () {
$(div.highlightStart).replaceWith(<section class='highlight'>);
$(div.highlightEnd).replaceWith(</section>);
});
</script>
No javascript errors showing in the browser console (Chrome). Just nothing gets replaced.
More From » jquery