How to assign value to Span and div using jQuery ?
Are you looking for a way to assign value to Span and div using jQuery ? then read this thread to know more about it
Hi,i am working on asp.net mvc razor view,i am using partial views,
i am placed span control in one partial view,i am binding partial view
in another view with jquery but it is not working,can any one guide me pls,
paritalvuew1.cshtml
<td><b>
<span id="spnPackageName" ></span>
<span id="submittername"></span>
</b>
<div id="divPackageName66666"></div>
</td>
in another partial view
jQuery.noConflict();
$(document).ready(function () {
$(".hpConsumerlink").click(function (e) {
debugger;
$("#submittername").text("plhk");
alert($("#spnPackageName").text());
$("#submittername").html("testing <b>1 2 3</b>");
alert($("#spnPackageName").text());
$("#divPackageName66666").append("sai ram");
});
});