How can I get, manipulate and replace a text node using jQuery?

后端 未结 3 380
时光取名叫无心
时光取名叫无心 2021-01-19 11:41

Here is my code:

  • Printing from $10
  • 3条回答
    •  有刺的猬
      2021-01-19 12:12

      You need to use the each function:

      $("li.det_price a").each(function(index, Element){
         //Element holds the current anchor, manipulate it's contents at will
         $("Element").val("some new value...");
      })
      

    提交回复
    热议问题