is there way append dropdown 1 php page another? i'm using colorbox called page1.
on php page2 :
<form method="post" id="add_me" action="<?php echo htmlspecialchars($_server["php_self"]);?>"> <p> <input type="text" name="desc" id="desc" value="<?php echo $new0;?>"> </p> <input type="submit" name="button" value="continue" /> </form> on php page 1:
<input class="iframe" href="page2.php" type="submit" name="submit_new" value="" /> <select name="selection" id="selection" > <?php while ($myrow = $res->fetch_assoc()) { ?> <option> <?php echo $myrow['desc'];?> </option> <?php } ?> </select> <div name="just_text" id="just_text" ></div> using:
$(document).ready(function(){ $(".iframe").colorbox({iframe:true, width:"50%", height:"50%"}); $('#add_me').submit(function(){ $(':input').each(function(){ window.parent.$("#selection").text(parent.$("#selection").text() + $(this).val()); window.parent.$("#just_text").append(parent.$("#just_text").text() + $(this).val()); }); return false; }); }); this appends div, i need append dropdown selection. selection goes blank on submit while text div gets appended. assume syntax incorrect?
Comments
Post a Comment