forum

Home / DeveloperSection / Forums / Hide specific text with jquery on mouseover

Hide specific text with jquery on mouseover

Jayden Bell 1738 02-Apr-2013
Hi Expert!

I can't seem to get this to work:

$('.products-grid li').hover(
function(){
    $('.price').html().replace('DKK','');
});
I want the "DKK" to not show, when the mouse is over the list-item. I know I can do this by adding a span around the DKK, but this is not possible for me to 

do so. I'm locked within the setup of the HTML as you see it here.

http://jsfiddle.net/4UeMd/

Hope someone can help me. This might be a simple jQuery coding I'm missing, but I can't quite figure it out.

Thanks in advance.

Updated on 02-Apr-2013

Can you answer this question?


Answer

1 Answers

Liked By