y@nn!ck Posted March 11, 2014 at 11:49 AM Report #548186 Posted March 11, 2014 at 11:49 AM 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.
I-NOZex Posted March 11, 2014 at 12:12 PM Report #548195 Posted March 11, 2014 at 12:12 PM (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 at 12:16 PM by I-NOZex B2R » Beat2Revolution v3.0b | Regista e divulga-nos beat2revolution.net
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