Solved

Display Selection In a Textbox

Posted on 2013-06-16
2
287 Views
Last Modified: 2013-06-16
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
Comment
Question by:DS928
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39251844
$('[name="What"]').val($('#Place option:selected').text());
0
 

Author Closing Comment

by:DS928
ID: 39251879
Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now