How can get the content of the b tag?
<label for="onde">
    <b>qua qua text</b>
    <textarea name="onde"></textarea>
&开发者_如何学编程lt;/label>
I am trying this with no success:
$('textarea[name=onde]').prev().val();
$('label[for="onde"] b').text();
should do it
You were close:
$( 'textarea[name="onde"]' ).prev().text()
Live demo: http://jsfiddle.net/5Y3Q8/
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论