Home > front end >  For post: how to use Jquery according to) $(' class '). The text () change the content of
For post: how to use Jquery according to) $(' class '). The text () change the content of

Time:10-22

 
<script SRC="https://bbs.csdn.net/topics/js/jquery-3.3.1.min.js" & gt; </script>




I want to take advantage of the Jquery "bill" for "horse six", could you tell me how to implement?

CodePudding user response:

$(" xinghao "). The filter (the function () {return $(this). The text ()=="bill"}), text (" horse six ");

CodePudding user response:

$(" xinghao "). Eq. (1) the text (" horse six ")

CodePudding user response:

 $(" xinghao "). The filter (the function () {return $(this). The text ()=="bill"}), text (" horse six "); 

CodePudding user response:

$(' & lt; Div & gt; The horse six & lt;/div> '). ReplaceAll ('. Xinghao: the contains (bill) ');
  • Related