

<rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:admin="http://webns.net/mvcb/"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
		
	<channel>
		<title>RSS Feeds :: DEVPPL - Forums > JavaScript Forum : Topics : How to display data in textbox</title>
	<!--<atom:link href="http://www.devppl.com/forum" rel="self" type="application/rss+xml" />-->
		<description>TOGETHER WE ARE THE BEST</description>
		<link>http://www.devppl.com/forum</link>
		<language>en-gb</language>
		<pubDate>Tue, 17 Aug 2004 14:07:13 +0100</pubDate>
		<lastBuildDate>Sat, 21 Nov 2009 13:13:11 +0000</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MSSTI v0.0.1 - (C) 2008 leviatan21 - http://www.mssti.com/</generator>
		<copyright>Copyright : (c) RSS Feeds :: DEVPPL - Tue, 17 Aug 2004 14:07:13 +0100</copyright>
		<dc:creator>webmaster@devppl.com (DEVPPL)</dc:creator>

		<image>
			<title>RSS Feeds :: DEVPPL - Forums > JavaScript Forum : Topics : How to display data in textbox</title>
			<url>http://www.devppl.com/forum/styles/DEVPPL/imageset/site_logo.gif</url>
			<link>http://www.devppl.com/forum</link>
		</image>
		<ttl>60</ttl>
		
		<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48184#p48184</link>
				<description><![CDATA[  It doesn't makes sense to me since the second select element isn't a
"select" element since you don't want the<span style="font-weight:
bold">option</span>  element be a child of<span style="font-weight:
bold">select</span>  element.
<br />
<br />Anyway, this might help:
<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">
<br /><script type="text/javascript"><br />/**<br />* Copy option's
value/text to textbox<br />* Additional Feature: Be able to instruct the
script as to the mode you wish.<br />* Created by Raymond Angana
&#91;username = rangana&#93;<br />* First seen in devppl.com/forum<br />*
This script must stay intact for legal use<br />*/<br />var ray=<br
/>&#123;<br />transfer:function&#40;inp,out,mod&#41;<br />&nbsp;
&nbsp;&#123;<br />&nbsp;
&nbsp;this.getID&#40;inp&#41;.onchange=function&#40;&#41;<br />&nbsp;
&nbsp;&nbsp; &nbsp;&#123;<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
&nbsp;ray.getID&#40;out&#41;.value=mod?this.options&#91;this.options.selectedIndex&#93;.text:this.value;<br
/>&nbsp; &nbsp;&nbsp; &nbsp;&#125;<br />&nbsp; &nbsp;&#125;,<br
/>getID:function&#40;el&#41;<br />&nbsp; &nbsp;&#123;<br />&nbsp;
&nbsp;&nbsp; &nbsp;return document.getElementById&#40;el&#41;; // Get the
element's id<br />&nbsp; &nbsp;&#125;<br />&#125;<br
/>window.addEventListener?window.addEventListener&#40;'load',function&#40;&#41</div>...<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=15155">rangana</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[  It doesn't makes sense to me since the second select element isn't a
"select" element since you don't want the<span style="font-weight:
bold">option</span>  element be a child of<span style="font-weight:
bold">select</span>  element.
<br />
<br />Anyway, this might help:
<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">
<br /><script type="text/javascript"><br />/**<br />* Copy option's
value/text to textbox<br />* Additional Feature: Be able to instruct the
script as to the mode you wish.<br />* Created by Raymond Angana
&#91;username = rangana&#93;<br />* First seen in devppl.com/forum<br />*
This script must stay intact for legal use<br />*/<br />var ray=<br
/>&#123;<br />transfer:function&#40;inp,out,mod&#41;<br />&nbsp;
&nbsp;&#123;<br />&nbsp;
&nbsp;this.getID&#40;inp&#41;.onchange=function&#40;&#41;<br />&nbsp;
&nbsp;&nbsp; &nbsp;&#123;<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
&nbsp;ray.getID&#40;out&#41;.value=mod?this.options&#91;this.options.selectedIndex&#93;.text:this.value;<br
/>&nbsp; &nbsp;&nbsp; &nbsp;&#125;<br />&nbsp; &nbsp;&#125;,<br
/>getID:function&#40;el&#41;<br />&nbsp; &nbsp;&#123;<br />&nbsp;
&nbsp;&nbsp; &nbsp;return document.getElementById&#40;el&#41;; // Get the
element's id<br />&nbsp; &nbsp;&#125;<br />&#125;<br
/>window.addEventListener?window.addEventListener&#40;'load',function&#40;&#41</div>...]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[15155]]></dc:creator>
			<dc:date>2008-11-26T12:55:58+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48184#p48184</guid>
		</item>
			<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48183#p48183</link>
				<description><![CDATA[second one quantity value should be displayed in the textbox<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=19780">ma-la</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[second one quantity value should be displayed in the textbox]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[19780]]></dc:creator>
			<dc:date>2008-11-26T12:27:50+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48183#p48183</guid>
		</item>
			<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48180#p48180</link>
				<description><![CDATA[That doesn't makes sense.
<br />
<br />Anyway, how about a response to my question?<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=15155">rangana</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[That doesn't makes sense.
<br />
<br />Anyway, how about a response to my question?]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[15155]]></dc:creator>
			<dc:date>2008-11-26T09:52:38+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48180#p48180</guid>
		</item>
			<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48179#p48179</link>
				<description><![CDATA[I don't want to list all quantity data in the listbox. If I use option
inside select ,all values will be listed in the listbox.<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=19780">ma-la</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[I don't want to list all quantity data in the listbox. If I use option
inside select ,all values will be listed in the listbox.]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[19780]]></dc:creator>
			<dc:date>2008-11-26T09:39:06+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48179#p48179</guid>
		</item>
			<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48177#p48177</link>
				<description><![CDATA[I see. You're second select element is erroneous.
<br />
<br />You should contain <span style="font-weight: bold">option</span>
element inside <span style="font-weight: bold">select</span> element:
<br /><div class="codetitle"><b>Code:</b></div><div
class="codecontent"><option><br />20200<br /></option><br /><br /><br /><br
/><option><br />12000<br /></option><br /><br /><br /><br /><option><br
/>200<br /></option><br /></div>
<br />
<br />Which of the two select element are you wanting its selectedIndex
texts be shown on the textbox?<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=15155">rangana</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[I see. You're second select element is erroneous.
<br />
<br />You should contain <span style="font-weight: bold">option</span>
element inside <span style="font-weight: bold">select</span> element:
<br /><div class="codetitle"><b>Code:</b></div><div
class="codecontent"><option><br />20200<br /></option><br /><br /><br /><br
/><option><br />12000<br /></option><br /><br /><br /><br /><option><br
/>200<br /></option><br /></div>
<br />
<br />Which of the two select element are you wanting its selectedIndex
texts be shown on the textbox?]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[15155]]></dc:creator>
			<dc:date>2008-11-26T09:32:07+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48177#p48177</guid>
		</item>
			<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48176#p48176</link>
				<description><![CDATA[ <table cellspacing="0" cellpadding="3" width="40%" align="left"
border="0">
<br />  
<br />  <tr>
<br />    <td>&nbsp; Stock Code</td>
<br />    <td><select size="1" name="name">
<br />                        
<br />            <option>
<br />              LG
<br />            </option>
<br />          
<br />                
<br />            <option>
<br />              Samsung
<br />            </option>
<br />          
<br />                
<br />            <option>
<br />              Sony
<br />            </option>
<br />          
<br />                
<br />              
<br />         
<br />    </select></td></tr>
<br />  <tr>
<br />    <td>&nbsp; Quantity</td>
<br />    <td><input style="WIDTH: 83px; HEIGHT: 23px" size="10"
name="Quantity">
<br />          
<br />          
<br />                
<br />            <option>
<br />              20200
<br />            </option>
<br />            
<br />          
<br />                
<br />            <option>
<br />              12000
<br />            </op...<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=19780">ma-la</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[ <table cellspacing="0" cellpadding="3" width="40%" align="left"
border="0">
<br />  
<br />  <tr>
<br />    <td>&nbsp; Stock Code</td>
<br />    <td><select size="1" name="name">
<br />                        
<br />            <option>
<br />              LG
<br />            </option>
<br />          
<br />                
<br />            <option>
<br />              Samsung
<br />            </option>
<br />          
<br />                
<br />            <option>
<br />              Sony
<br />            </option>
<br />          
<br />                
<br />              
<br />         
<br />    </select></td></tr>
<br />  <tr>
<br />    <td>&nbsp; Quantity</td>
<br />    <td><input style="WIDTH: 83px; HEIGHT: 23px" size="10"
name="Quantity">
<br />          
<br />          
<br />                
<br />            <option>
<br />              20200
<br />            </option>
<br />            
<br />          
<br />                
<br />            <option>
<br />              12000
<br />            </op...]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[19780]]></dc:creator>
			<dc:date>2008-11-26T09:23:57+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48176#p48176</guid>
		</item>
			<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48173#p48173</link>
				<description><![CDATA[The code you're showing is a server-side script (or better yet a raw file).
<br />
<br />I'm asking for the generated markup.
<br />
<br />The one you see when you view the page's source.
<br />
<br />Hope that makes sense.<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=15155">rangana</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[The code you're showing is a server-side script (or better yet a raw file).
<br />
<br />I'm asking for the generated markup.
<br />
<br />The one you see when you view the page's source.
<br />
<br />Hope that makes sense.]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[15155]]></dc:creator>
			<dc:date>2008-11-26T09:09:28+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48173#p48173</guid>
		</item>
			<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48172#p48172</link>
				<description><![CDATA[I am not getting what you are asking
<br />
<br />I used 
<br />
<br /><sql:query var="list" dataSource="${dataSource}">
<br />    select user_id,name,sum(quantity) as quantity from Product GROUP
BY name;
<br /></sql:query>
<br />
<br />I have Name Listbox and quantity textbox
<br />
<br />The values are displayed as 200,400,800..outside the textbox
<br />
<br />I want to display the corresponding value in the textbox when I click
the name in the listbox
<br />
<br />Please help<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=19780">ma-la</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[I am not getting what you are asking
<br />
<br />I used 
<br />
<br /><sql:query var="list" dataSource="${dataSource}">
<br />    select user_id,name,sum(quantity) as quantity from Product GROUP
BY name;
<br /></sql:query>
<br />
<br />I have Name Listbox and quantity textbox
<br />
<br />The values are displayed as 200,400,800..outside the textbox
<br />
<br />I want to display the corresponding value in the textbox when I click
the name in the listbox
<br />
<br />Please help]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[19780]]></dc:creator>
			<dc:date>2008-11-26T09:02:04+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48172#p48172</guid>
		</item>
			<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48164#p48164</link>
				<description><![CDATA[Please show the generated markup.
<br />
<br />The one that you see when you view the source.<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=15155">rangana</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[Please show the generated markup.
<br />
<br />The one that you see when you view the source.]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[15155]]></dc:creator>
			<dc:date>2008-11-26T07:12:23+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48164#p48164</guid>
		</item>
			<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48163#p48163</link>
				<description><![CDATA[My listbox has some product names
<br />  LG
<br />  Sanyo
<br />like this
<br />When I click LG item in listbox corresponding data should be
displayed in the textbox
<br />
<br />I tried
<br />
<br /><input style="WIDTH: 83px; HEIGHT: 23px" size="10" name="Quantity">
<br />          <c:forEach var="row" items="${list.rows}">
<br />                <c:set var="quantity ">"{row.quantity }"
<br />                </c:set>
<br />            <option>
<br />              <c:out value="{row.quantity }"/>
<br />            </option>
<br />          </c:forEach>
<br />
<br />All datas are displayed.But I want to display one data. Please help
me<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=19780">ma-la</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[My listbox has some product names
<br />  LG
<br />  Sanyo
<br />like this
<br />When I click LG item in listbox corresponding data should be
displayed in the textbox
<br />
<br />I tried
<br />
<br /><input style="WIDTH: 83px; HEIGHT: 23px" size="10" name="Quantity">
<br />          <c:forEach var="row" items="${list.rows}">
<br />                <c:set var="quantity ">"{row.quantity }"
<br />                </c:set>
<br />            <option>
<br />              <c:out value="{row.quantity }"/>
<br />            </option>
<br />          </c:forEach>
<br />
<br />All datas are displayed.But I want to display one data. Please help
me]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[19780]]></dc:creator>
			<dc:date>2008-11-26T06:09:07+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48163#p48163</guid>
		</item>
			<item>
			<title></title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48162#p48162</link>
				<description><![CDATA[You can use the <span style="font-weight: bold">value</span> method
available on the textbox element.
<br />
<br />Please show us the generated markup of your listbox (select element)
so we could help you have a script of your desire.<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=15155">rangana</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[You can use the <span style="font-weight: bold">value</span> method
available on the textbox element.
<br />
<br />Please show us the generated markup of your listbox (select element)
so we could help you have a script of your desire.]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[15155]]></dc:creator>
			<dc:date>2008-11-26T02:02:28+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48162#p48162</guid>
		</item>
			<item>
			<title>How to display data in textbox</title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=48147#p48147</link>
				<description><![CDATA[I want to fetch data from mysql and display in textbox when I click the
corresponding item in listbox. I used SQL JSTL to fetch data for listbox.
Please help me how to display data in textbox?<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=19780">ma-la</a> &bull; on Tue Nov 25, 2008 2:28 pm &bull; Replies 11 &bull; Views 502</p><hr />]]></description>
					<content:encoded><![CDATA[I want to fetch data from mysql and display in textbox when I click the
corresponding item in listbox. I used SQL JSTL to fetch data for listbox.
Please help me how to display data in textbox?]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=49"><![CDATA[JavaScript Forum]]></category>
			<dc:creator><![CDATA[19780]]></dc:creator>
			<dc:date>2008-11-25T13:28:13+00:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=48147#p48147</guid>
		</item>
	
	</channel>
</rss>