When should the selected option be displayed? On the next page-load? Or instantly? Do you want to use
php or javascript or what?
I'm not sure how to do it with javascript but with
PHP it works like this:
- PHP: Select all
<html>
<head>
<title>get posted option</title>
</head>
<body>
<form>
<select size="1" name="cboItem1">
<option selected>None</option>
<option value="4">Women Suit</option>
</select>
<input type="text" value="<?php if(isset($_POST['cboItem1'])) { echo($_POST['cboItem1']); } ?>" />
</form>
</body>