removeclass - Jquery remove class not working on a bc website -
i trying removeclass.addclass jquery
<input class="cat_button botao-verde formulario-rodape" type="submit" value="subscrever" id="catlistbutton" /> <script type="text/javascript"> $("catalistbutton").click(function(){ $(this).removeclass("formulario-rodape").addclass("botaoclique"); }); </script>
it not working. adds new class(no shadows) , class removed shadow effect remains in code.
see here @ bottom of page on newsletter signup form, green button
your jquery selector incorrect. use $("#catalistbutton")
adress id. suggest putting dom manipulating code inside $(document).ready();
Comments
Post a Comment