I have an Ajax Tab Panel on my webpage with three tabs in it.
On my first tab i have some textboxes.
Now I want to give Alert message to user if user navigates to another tab after changing value of any of the text box.
I want to perform this task using Javascript if possible.
Or else any other solutions are acceptable.

Below Image shows my tab panel structure[IMG]http://www.eggheadcafe.com/FileUpload/1619491694/myprofile.png[/IMG]

Member Avatar for Pnorq

Well, attach a listener on the tabs, and in the listener, fire an alert() when it's clicked.

In JQuery it's easy to do as well as stopping the default behavior, eg going to the tab clicked (if required).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.