JQuery select text next to an input checkbox?

Posted by Rosdi on Stack Overflow See other posts from Stack Overflow or by Rosdi
Published on 2010-03-30T02:16:17Z Indexed on 2010/03/30 2:23 UTC
Read the original article Hit count: 402

Filed under:
|

Using JQuery, is there a simple way to select the text immediately after a checkbox?

<li>bleh..</li>
<li>
    <input type="checkbox" id="cbx1" value="10" />&nbsp;Very important text.
</li>
<li>bleh..</li>

I want to use jquery to select that "Very important text." minus &nbsp;

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-selectors