954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Avoid Dropdown refresh

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>
niths
Posting Whiz in Training
299 posts since Mar 2010
Reputation Points: 9
Solved Threads: 2
 

Was the solution in this thread unclear ? http://www.daniweb.com/forums/thread289270.html

pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You