0

hey guys i have used jquery tabs in my website design. In one page i have 4 tabs and in each tab i have save and clear option . if i click on tab 3 and enter the contents and then save its returning back to tab1!
I want it to be retained in the same tab after saving !
Lookin forward for your replies
Thank you
Yopirates

2
Contributors
2
Replies
5
Views
7 Years
Discussion Span
Last Post by yopirates
0

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>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.