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>

```
Try this:

```
$(document).ready(function(){
    $('span[style]')
        .removeAttr('style')
        .addClass('line');
});

```

If you need to match the underline rule *exactly*, you can add a constraint. Just replace this:

```
$('span[style]')

```

with this:

```
$('span[style="text-decoration: underline;"]')

```

And just for completeness, here's a [JSFiddle](http://jsfiddle.net/d8wwjk5k/).