jquery css change outline of input to none

cobain325

New Member
Ok. I know some of you are reading this and already asking why I'm so stupid and why I dont do this with simple CSS.\[code\]input:focus { outline:none; }\[/code\]Simple... for some reason wordpress is not allowing this change to happen - so I am reverting to jquery to do the dirty work. Problem is for me.. I can't get it to work either....http://jsfiddle.net/h5KEm/ is the link to the following code on jsfiddle:\[code\]<form action="" method="post"><input id="optin" name="optin"><br /><input type="submit" id="submit" name="submit" value="http://stackoverflow.com/questions/12787231/go"></form>?$('input[name=optin]').click(function() { $(this).css('outline', none'); });?\[/code\]
 
Back
Top