I have sample script that open tree
I want still open in next page or until choose another one
any help
+computerbooks
Asp.Net
HTML
PHP
+Langaugebooks
English
Arabic
the problem i want selected link
<script>
$(document).ready(function() {
$('li.type').addClass('plusshow');
$('li.type').children().addClass('selected');
$('li.type').children().hide();
$('li.type').each(
function(column) {
$(this).click(function(event){
if (this == event.target) {
if($(this).is('.plusshow')) {
$(this).children().show();
$(this).removeClass('plusshow');
$(this).addClass('minusshow');
}
else
{
$(this).children().hide();
$(this).removeClass('minusshow');
$(this).addClass('plusshow');
}
}
});
}
);
});</script>
<style>
.plusshow{
list-style-image:url(../img/expand-large-blue-Shapes4FREE.png);
cursor:pointer;
margin-right:5em;
}
.minusshow{
list-style-image:url(../img/collapse-large-blue-Shapes4FREE.png);
cursor:pointer;
margin-right:5em;
}
.selected{
list-style-image:url(../img/selected.png);
cursor:pointer;
}
</style>
<ul><li class="type"><? echo '<br />.$type.''.'books'.<br />';?>
<?$row_count = 1;
while($rowv=mysql_fetch_array($resultv)){
?><ul>
<li><a href="types.php?id=<?php echo $rowv[bookid];?><? echo $rowv[bookid]; ?></a></li>
</ul><?}?></li></ul>