0

I am creating a form which consists of 3 tabs.In the first tab form submit is by clicking on save button of type submit,in the second tab the submit is by jQuery,in the third tab the submit is by clicking on save button of type submit.My problem is i want the save button to appear on only two tabs i.e., only on first and third tab.I dont want the save button to appear on second tab bcoz that second tab form i submit using jquery.how can i remove save button in second tab?plz help

1

jQuery(document).ready(function() {
if (window.location.pathname == '/recruiterForm/2') { jQuery('input#edit-submit').hide(); } });

i have solved this problem using jquery.I have used window.location.pathname.This property returns the pathname of current page.if pathname is equal to the required url then i am hiding the save button by using the save button id.This solution works for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.