• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • Last Modified:

Display Selection In a Textbox

I am trying to display the selection made in a selectbox in a textbox.  The textbox is named what.

<script type="text/javascript">
			$(document).ready(function () {
				$('#Place').iPhonePicker({ width: '280px', imgRoot: 'Images/Misc' });
				$('#Place option:selected').text();
				//$('#Place').show(); // made invisible by iPhonePicker command
			});
		</script>	
	
    
    <input name="What" type="text" />

Open in new window

0
DS928
Asked:
DS928
1 Solution
 
GaryCommented:
$('[name="What"]').val($('#Place option:selected').text());
0
 
DS928Author Commented:
Thank you.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now