Hi all,
i am having a page wer we can see a dropdown of projects and below that list of users with check box. so wen we select a project from dropdown,the page gets refresh and the assigned users for that project wil be shown as checked. this is done by onchange.
Here is my problem due to that refresh the dropdown selected value is getting to the initial state(---select project----).so wat i need is, the selected value in drop down should not get to the default value. so can we restrict only that dropdown getting refreshed.

<script type="text/javascript" language="javascript">
   function getValue(selval)
   {
          
     location.href="noname1.php?projassign="+selval;
    
   }
</script>
<html>
<body>
<form name="myform">
<select id="prolist" name="projectassign" onchange="getValue(this.value);" >
<option >----select project----</option>
<?php echo $options ?> 
 </select>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.