Replace # keyword from to the strings from the specified <div></div> using Jquery

Posted by user568085 on Stack Overflow See other posts from Stack Overflow or by user568085
Published on 2011-01-08T14:46:03Z Indexed on 2011/01/08 14:54 UTC
Read the original article Hit count: 184

Filed under:
|

Hi friends, I have problem to replace keyword from input string

I have

<div id="Wrap">
<span class="common"><div id="main0"> to test it #sky </div></span>
</div>

I want to like this :

<div id="Wrap">
<span class="common">
<div id="main0"> to test <a href="http://mysite.com/search?q=#sky">#sky</a>  </div>
</span>
</div>

I tried with replace in jquery but not getting ... I finding solution in jquery or javascript Please help me...

  • abhishek

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery