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: 
On dom ready you can target all span elements like

```
jQuery(function($){
    $('span[style]').removeAttr('style')
})

```

If you want to target all elements with style attribute

```
$('[style]').removeAttr('style')

```
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');
         });                  
   });

```