Is there a way to use jQuery to show the child span text - SomeClassChild3 string when hovering over the parent div - SomeClassParent in an aspx page?
Here is the JavaScript section of the code:
function ShowDiv(Somedata){
for(var v in Somedata){
var tempdata = ''
tempdata += '<div class="SomeClassParent">'
tempdata += '<div class="SomeClassChild">'+Somedata[v].serialnum+'</div>'
tempdata += '<span class="SomeClassChild2">'+Somedata[v].textdata.slice(0,49).trim()+'</span>'
tempdata += '<span class="SomeClassChild3" style="display:none;">'+Somedata[v].textdata.slice(49,v.textdata.length).trim()+'</span>'
tempdata += '</div>'
}
}
$(document).ready(function () {
$('.SomeClassParent').hover(function () {
$(".SomeClassChild3").css({"display":"block"});
});
});