I'm having trouble displaying text below the cube. The code works fine in a standalone fiddle, but it doesn't work when I incorporate it into my project. Can someone help me figure out how to show the value of data-text="Cube1"
?
Code that works: http://jsfiddle.net/PKwDp/4/
Code that's not working: http://jsfiddle.net/rajkumart08/EDKkg/1/
$('document').ready(function () {
window.setTimeout(function () {
$('.cubeCell').each(function () {
var htmlText = $(this).attr('data-text');
$(this).append('<div class="cubeTextStyle">'+htmlText+'</div>');
});
}, 600);
});
<div data-text="Cube1" data-caption="<a style='margin-left: 92px; font-size: 18px; color: grey;' href='http://www.w3schools.com/' >Create</a> <div> <a style='margin-left: 92px; font-size: 18px; color: grey;' >View/Edit</a> </div> <a style='margin-left: 92px; font-size: 18px; color: grey;' >Labels</a>" data-image="http://www.defie.co/designerImages/inventoryControl.png">testing</div>