Click here to Skip to main content
15,923,789 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here is my Javascript Code....

XML
<script type="text/javascript">
    $(document).ready(function() {
        $("select").multiselect({
            close: function() {
                debugger;
                var values = new Array();
                $(this).multiselect("getChecked").each(function(index, item) {
                    values.push($(item).val());
                });
                $("input[id*=selectedValues]").val(values.join(","));
            }
        });
    });
</script>


XML
<select size="5" name="example-basic" multiple="multiple" id="dd" >
         <?php
$regId=$_GET['regId'];
$query=mysql_query("select * from pax_reg_upld where regId='$regId'");
while($row=mysql_fetch_array($query))
{
?>
            <option value="files/<?php echo $row['docFile'];?>" ><?php echo $row['docName'];?></option>
    <?php
}
?>

        </select>



        <input type="button" name="Submit" value="Go!" onClick="window.open(dd.value,'newtab'+dd.value)" >

Here is my PHP code
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900