---
title: "Hide specific text with jquery on mouseover"  
description: "Hide specific text with jquery on mouseover"  
author: "Jayden Bell"  
published: 2013-04-02  
updated: 2013-04-02  
canonical: https://www.mindstick.com/forum/694/hide-specific-text-with-jquery-on-mouseover  
category: "css-css3"  
tags: ["css", "css3", "html5", "html5 tags", "mindstick", "free open source", "jquery on mouseover", "Hide specific text"]  
reading_time: 1 minute  

---

# Hide specific text with jquery on mouseover

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances)!\
I can't seem to get this to work:\
$('.products-[grid](https://www.mindstick.com/forum/369/how-can-i-add-a-column-name-to-my-grid) li').hover([function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server)(){ $('.price').[html](https://www.mindstick.com/articles/1530/design-a-simple-stylish-calculator-using-html-css-and-javascript)().replace('DKK','');});I want the "DKK" to not show, when the [mouse](https://yourviews.mindstick.com/story/5122/the-story-behind-lord-ganesha-s-mouse-mushak) 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](https://www.mindstick.com/articles/426/how-to-create-a-setup-project-for-windows-application) of the HTML as you see it here.\
http://jsfiddle.net/4UeMd/\
Hope someone can help me. This might be a [simple](https://yourviews.mindstick.com/story/1469/5-simple-ways-to-stay-fit-amp-healthy) jQuery [coding](https://www.mindstick.com/articles/12290/teaching-coding-from-the-metal-up-or-from-the-glass-back) I'm [missing](https://answers.mindstick.com/qa/52138/international-missing-children-s-day-2019-was-observed-on), but I can't quite [figure](https://yourviews.mindstick.com/view/87536/what-are-ghosts-jobs-and-how-to-figure-out-them) it out.\
Thanks in advance.

## Replies

### Reply by AVADHESH PATEL

Hi Jayden!\
Try this way\
Set the html of the element in the script. Currently the script just modifies the innerHtml of .price it does not set the html of price.

```
$('.products-grid li').hover(    function(){        $('.price').html($('.price').html().replace('DKK',''));
```


---

Original Source: https://www.mindstick.com/forum/694/hide-specific-text-with-jquery-on-mouseover

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
