y@nn!ck Posted March 11, 2014 Report Share Posted March 11, 2014 blz pessoal, alguem poderia me dar alguma ideia de como desabilitar um buttoa com jquery e que ele permaneça desabilitado enquqnto o cookie estiver activo. Yannick José Lima Nascimento Link to comment Share on other sites More sharing options...
I-NOZex Posted March 11, 2014 Report Share Posted March 11, 2014 (edited) https://github.com/carhartl/jquery-cookie http://www.w3schools.com/js/js_cookies.asp $(document).ready(function(){ if ($.cookie('not_existing') == undefined){ $("input[type=submit]").attr("disabled", "disabled"); }else { $("input[type=submit]").removeAttr("disabled"); } }); Edited March 11, 2014 by I-NOZex B2R » Beat2Revolution v3.0b | Regista e divulga-nos beat2revolution.net Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now