- Joined
- Dec 15, 2009
- Messages
- 1,382
- Reaction score
- 236
http://jsfiddle.net/3NJeg/
Alright, this is it. another freaking problem with JQuery.
As you can see, if u hover on 'CLICK ME 2', data-info will be revealed because it's variable stored isn't equals to '0'. However, if you hover on it again, a blank space will occurs (<span></span>) without any variable. idk why :/
It is actually repeating this codes
I have no idea how to stop this 
can anybody give me a hand?
Alright, this is it. another freaking problem with JQuery.
As you can see, if u hover on 'CLICK ME 2', data-info will be revealed because it's variable stored isn't equals to '0'. However, if you hover on it again, a blank space will occurs (<span></span>) without any variable. idk why :/
It is actually repeating this codes
Code:
} else {
var info2 = '<span>'+$(this).attr('data-info')+'<br /></span>'
$(this).attr('data-info',info2);
}
can anybody give me a hand?

