Here in the second tab i have a submit button .when i enter some value in the textfield of second tab(tab2) and give submit its again going back to first tab(tab1) .What i want is after i click submit in tab2 it has to be in tab2 oly.It has to be in current tab
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>jQuery UI Tabs - Default functionality</title>
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.4.2.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.tabs.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
$("#tabs").tabs();
});
</script>
</head>
<body>
<div class="demo">
<div id="tabs">
<ul>
<li><a href="#tabs-1">Nunc tincidunt</a></li>
<li><a href="#tabs-2">Proin dolor</a></li>
<li><a href="#tabs-3">Aenean lacinia</a></li>
</ul>
<div id="tabs-1">
<form name="input" method="get">
Username1: <input type="text" name="user" />
<input type="reset" value="Start Over" />
</div>
<div id="tabs-2">
<form name="input" method="get">
Username2: <input type="text" name="user" />
<input type="submit" value="Submit" />
</div>
<div id="tabs-3">
<<form name="input" method="get">
Username3: <input type="text" name="user" />
<input type="reset" value="Start Over" />
</div>
</div>
</div><!-- End demo -->
<div class="demo-description">
</div><!-- End demo-description -->
</body>
</html>