How to use jquery prepend() function for adding rupee symbol before all numbers
<p>Here i am trying to add Rupee Symbol before the numbers. If there is "-" then i don't want to add the Rupee symbol over there. here is my code  <a href="http://jsfiddle.net/sureshpattu/Hrac3/1/" rel="nofollow">here</a></p>

<pre><code>var te = $('p.active').text();
    var te2 = $('p.in_active').text();    
    if(te === '-'){}
    else{$('p.active').prepend("&lt;span class='WebRupee'&gt;Rs.&lt;/span&gt;");}
    if(te2 === '-'){}
    else{$('p.in_active').prepend("&lt;span class='WebRupee'&gt;Rs.&lt;/span&gt;");}
</code></pre>

<p>My Html Is </p>

<pre><code>&lt;link rel="stylesheet" type="text/css" href="http://cdn.webrupee.com/font" /&gt;
&lt;div class="main"&gt;
&lt;p class="active"&gt;10,200&lt;/p&gt;
&lt;p class="in_active"&gt;1,68,10,900&lt;/p&gt;
&lt;p class="active"&gt;0&lt;/p&gt;
&lt;p class="in_active"&gt;-&lt;/p&gt;
&lt;p class="active"&gt;12,78,200&lt;/p&gt;
&lt;p class="in_active"&gt;-&lt;/p&gt;
&lt;p class="active"&gt;-&lt;/p&gt;
&lt;p class="in_active"&gt;9,890&lt;/p&gt;
&lt;p class="active"&gt;10,200&lt;/p&gt;
&lt;p class="in_active"&gt;1,68,10,900&lt;/p&gt;
&lt;p class="active"&gt;0&lt;/p&gt;
&lt;p class="in_active"&gt;-&lt;/p&gt;
&lt;p class="active"&gt;12,78,200&lt;/p&gt;
&lt;p class="in_active"&gt;-&lt;/p&gt;
&lt;p class="active"&gt;-&lt;/p&gt;
&lt;p class="in_active"&gt;9,890&lt;/p&gt;
&lt;/div&gt;​
</code></pre>

<p>my css is </p>

<pre><code>.in_active{color:#999;font-size:11pt;font-weight:400;}
.active{color:#333;font-size:11pt;font-weight:400;}
.main{padding:30px;}​
</code></pre>
