JQuery: How to find what is between two text points
- by Sarfraz
Hello,
Let's say I have this:
<div id="wrapper">
<pre class="highlight">
$(function(){
// hide all links except for the first
$('ul.child:not(:first)').hide();
$("a.slide:first").css("background-color","#FF9900");
/*
The comment goes here.
*/
</pre>
</div>
With Jquery, I want to find what is in between:
/*
The comment goes here.
*/
Including those comment signs. So it should return:
/*
The comment goes here.
*/
How to do that, how to find text between two points?
Thanks