I have a php web page which has a textbox. beside the textbox i have provided a link. On clicking a link DIV open which has a ifram. I frame is populated with a list of items with id and description. Now when I click a particular Item I want the DIV to get closed and ID of that particular item to be fetched into the textbox.
Page1.php
<html>
<body>
<input id="productid" type="text" name="productID" />
<img src=search.gif border=1 onclick="document.all.floatDiv.style.display='inline'" alt="Expand">
<img src=nosearch.gif onclick="document.all.floatDiv.style.display='none'" alt="Compress">
<div id="floatDiv">
<iframe name="moreIframe" id="moreIframe" width="99%" height="97%" align="center" src="Page2.php" style="background-color: white;"></iframe>
<?php
?>
</div>
</body>
</html>
Page2.php
<html>
<body>
<table>
<tr>
<td>ID</td>
<td>Product</td>
</tr>
<tr>
<td><a href="" onclick="retvalue('12')" >12</a></td>
<td>Brass 13 mm Rod</td>
</tr>
<tr>
<td><a href="" onclick="retvalue('15')" >15</a></td>
<td>Steel 13 mm Rod</td>
</tr>
<table>
</body>
</html>