I am having a problem with jquery. My HTML is
<div id="first">
<span class="test"></span>
</div>
<div id="second">
<span class="test"></span>
<div>
Now I am trying to add text in span using Jquery.
$j('span.test').text('Welcome');
After that it becomes,
<div id="first">
<span class="test">Welcome</span>
</div>
<div id="second">
<span class="test">Welcome</span>
<div>
But, I am tryting to achieve is,
<div id="first">
<span class="test">Welcome</span>
</div>
<div id="second">
<span class="test"></span>
<div>
How can I do that in jquery?
var $j = jQuery.noConflict();