jQuery UI Tabs: Don't let user switch tabs if form input in active tab has content
问题 I'm using jQuery UI Tabs, and these tabs are inside a form. Every tab contains a number of form fields, which can be filled. It looks something like this: <form> <tab1 href=tabcontent1> <tab2 href=tabcontent2> <tab3 href=tabcontent3> <div tabcontent1> <input field> <input field> </div> <div tabcontent2> <input field> <input field> </div> <div tabcontent3> <input field> <input field> </div> <submit button> </form> Problem is, If the user for example have started filling the fields of tab1, I