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 don't want the user to be able to fill the fields of tab2 or tab3.
So, I'm looking for a way to check if the user have started to fill the input fields of a tab, and if this is the case, hide the other tabs / disable switching to the other tabs.
If the user removes the stuff he has written, he should once again be able to switch tabs.
Thanks for your help, it's greatly appreciated!
// Jens.