Using “this” with jQuery Selectors

后端 未结 3 1523
余生分开走
余生分开走 2020-12-14 16:38

I have some HTML that looks like this:

3条回答
  •  别那么骄傲
    2020-12-14 17:02

    $(this).next("p").css("...")
    

    the "p" above is optional, if you just want the next non-whitespace node in the DOM.

提交回复
热议问题