i have a CSS tab which is tab1 and tab2 and both are on the html page, in both tabs i have a submit button (<input type="submit" name="submit1"/>) on both. if i am in tab2 and i click submit i want it to remain in tab2 not to go back to tab1
Code:
<html>
<head>
<title></title>
<link href="SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8">
function show(div){
document.getElementById(div).style.display='';
}
</script>
</head>
<body>
<?php
if (isset($_GET['page'])) {
$pages = ($_GET['page']);
} else {
echo "page one";
}
?>
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0" id="one" >Tab1</li>
<li class="TabbedPanelsTab" tabindex="0" id="two" >Tab2</li>
</ul>
<div class="TabbedPanelsContent">
<div>
<form action="home.html" method="post">
<input type="submit" name="submit1" value="Submit" onclick="show('one')"/>
</form>
</div></div>
<div class="TabbedPanelsContent">
<div>
<form action="home.html" method="post">
<input type="submit" name="submit1" value="Submit" onclick="show('two')"/>
</form>
</div></div>
</body>
</html>
Comment