The tempdata populates a div in the aspx page. Whenever the parent div - SomeClassParent is being hovered on, the child span text - SomeClassChild3 string should be shown. How do I achieve that with jQuery?
Below is the js portion 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"});
});
});