
Originally Posted by
COOL_DEV
Hi,
made a search but the keywords tab, tabs returned too many results...
Looking to add tabs in a JSP. Since it's quite common, I was looking for a lib in Spring 3 that was available but could not find any. Does someone has a recommendation provided I don't want any rich-client widgets ?
Thanx,
Hi,
You may want to have a look at JQueryUI project. It provides a tab control. The mechanism is very simple. Include jquery-1.7.2.js, include jquery-ui-1.8.16.css. And use HTML code similar to shown below.
HTML Code:
<div id="tabs">
<ul>
<li><a href="#tabs-1">Business Details</a></li>
<li><a href="#tabs-2">Contact Details</a></li>
</ul>
<div id="tabs-1">
<!-- YOUR HTML CODE -->
</div>
<div id="tabs-2">
<!-- YOUR HTML CODE -->
</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
$("#tabs").tabs();
});
</script>
Regards,
Prasad P. Khandekar