Enable tabs with jquery ui tabs issue -


I am trying to enable the next tab at the end of the function below.

Here is my function (updated)

  var $ signup = $ ('# signup-content'). The tab validates the form on the tab ({disabled: [1,2], show: function (event, UI) {// # 1 $ ("# createAccount"). Validate ({Meta: "valid", error element: "Em", error class: "error", valid class: "success", highlight: work (element, error class, valid class $ (Element) .closest ("div.required"). RemoveClass (valid class); $ (Element) .closest ("div.required") AddClass (errorClass); $ (element) .addClass (errorClass);}, Unhighlight: function (element, error class, valid class) {$ (element) .closest ("Div.required"). RemoveClass (errorClass); $ (element) .closest ("div.required") AddClass (validClass); $ (instant ) .removeClass (errorClass);}, E RrorPlacement: function (error, element) {if (element.attr ("name") == "month" || Element.attr ("name") == "days" | | Element.attr ("name") == "year") error.insertAfter ("# years"); Else error.addClass ("hide");}, debug: true, group: {birthday: "day of the month "}, Rule: {first name: {expected: true}, last name: {expected: true}, email: {required: truth, email: true}, confirmation email: {expected: true, equal:" #email " }, Password: {required: correct}, confirm_password: {required: true, equal: "# powered"}, zipcode: {required: true, min: 5}, ma : {Required: true}, Message: {Month: {Required: "{Required: true} Month: "missing time"}, year: {expected: "day is missing"}, year: {expected: "year is missing"}}, Submit handler: function (form) {$ (form) .ks submit ({ Submit before: function showRequest FormData, jqForm, option) {var queryString = $ .pa Ram (formData); Warning ('About submitting: \ n \ n' + query string); Return true; }, Success: function show response (form data) {$ ('html, body'). Chetan ({scrollTop: '0px'}, 500); $ Signup.tabs ('Options', 'Enabled', [1]); $ Signup.tabs ('Select', 1); Adyxas ("Notice"). The app ('& lt; h3 & gt; has created your account! & Lt; / h3 & gt; & lt; a href = "javascript:;" id = "close" & gt; & lt; img src = " / Assets / images / close.png "alt =" close "title =" off "/> gt; & lt; / a & gt; '); $ ('# Message-container'). Click FIDE (1200, function () {$ ('# off'). (Function () {$ ('# message-container'). FadeOut (1200);});}); return false;}});}}); According to the    

, you can not use:

 < Code> $ signup.tabs ('option', 'enabled', [1]);  

but use it:

  $ signup.data ('disabled.tabs', []);  

Explains the list of disabled tabs.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -