I need to call the id value from another function
Here the code
$("p").hover(function() {
var i = $(this).text();
$("#o").show();
}, function() {
$("#o").delay(2000).fadeOut("slow");
});
$("#o").click(function() {
$(".display").append(i);
});
I need “i” value display on “.display” class div.
Any one can help me please..
Simply declare
ioutside..