Question: I've tried a few ways but none seem to get the result I want. 

I'm using `Visual Basic 2010` Express. 

What I currently have is:

```
Get selected word length

I=1
Count =1
FOR count to selectedword length
    IF Guess.Text = index of selected word THEN
        word index(I) =index
        Character = Guess.Text
        I = I + 1
    ENDIF
NEXT Count

```

Answer: 
Check this DEMO : <https://jsfiddle.net/yv5apdaj/>

You can do like this, update the css style according to your need.

In this way, you still can use other styles and remove the desired css style only.

### JQUERY

```
$(document).ready(function(){
    $('span').each(function(){
        if($(this).css('text-decoration') === 'underline'){
            $(this).css({'text-decoration':''});
            $(this).addClass('line');
        }    
    });
});

```

### HTML

```
<span style="text-decoration: underline;">Test Content</span><br /><br />
<span style="text-decoration: underline;">Test Content</span>

```
See [Demo](https://jsfiddle.net/nazexd7h/) 

**Html**

```
<p>My mother has <span style="text-decoration: underline;">blue</span> eyes and my father has <span style="text-decoration: underline;">dark green</span> eyes.</p><button  onclick="btncheck();">Check</button>

```

**jQuery**

```
 $(document).ready(function(){
        $("button").click(function(){
           $('span[style="text-decoration: underline;"]')
             .removeAttr('style')
             .addClass('line');
         });                  
   });

```