I cannot add a class to this input:

Here is the jQuery:
$( ".payment_nr" ).addClass( "highred" );
The HTML:
<div>
<input id="email" class="payment_nr" type="email" placeholder="[email protected]">
</div>
And this is the CSS I want to add:
.highred{
-webkit-appearance: none;
-webkit-box-shadow: 0px 0px 7px 0px rgba(255,0,0,0.66);
-moz-box-shadow: 0px 0px 7px 0px rgba(255,0,0,0.66);
box-shadow: 0px 0px 7px 0px rgba(255,0,0,0.66);
}
The weird think is that if I apply it to the parent it works: 
$( ".payment_nr" ).parent().addClass( "highred" );
Also if I add pure CSS directly it works: 
$( ".payment_nr" ).css("background-color","yellow");
Can somebody please help me to add it directly on the input using an external CSS?
class="payment_nr highred"does that work?