Wednesday, September 30, 2015

How do I get (or) bind a value of a span tag using jQuery?


This value bind based id

$('#tdate').text();
or

$('#tdate').html();


This value bind based id + <span> tag
$('#tdate span').text();
or

$('#tdate span').html();

bind a value of a span tag using jQuery

bind a value of a span tag using jQuery

No comments:

Post a Comment