후 문자열이 처음 occurance에 HTML을 추가하려면 :어떻게 그렇게처럼 HTML이 선택한 요소
<div class=foo>
(<a href=forum.example.com>forum</a>)
<p>
Some html here....
</div>
그리고, 첫 번째 후 다른 링크를 삽입과 같이 할 :
<div class=foo>
(<a href=forum.example.com>forum</a>) <a href=blog.example.com>blog</a>
<p>
Some html here....
</div>
이 ()
로 묶여 있기 때문에 ...하지만 난 사용할 수 없습니다
$('div.foo a:first').append(' <a href=blog.example.com>blog</a>');
...앞에 넣으 것이다.
그렇다면 )
글자를 선택하기 위해 jQuery를 확장하거나 다른 솔루션을 사용해야합니까?
'after()'관련 수정 – user191688