<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3299217711461373501</id><updated>2024-09-01T16:33:11.753-07:00</updated><title type='text'>How to fix html drop down width problem in IE</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dropdownwidthproblem.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3299217711461373501/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dropdownwidthproblem.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ruchi Sinha</name><uri>http://www.blogger.com/profile/14809595238104367901</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3299217711461373501.post-7517633930834093891</id><published>2011-07-22T14:13:00.000-07:00</published><updated>2018-04-23T18:36:11.414-07:00</updated><title type='text'>How to fix html drop down width problem on Internet Explorer</title><content type='html'>&lt;a href=&quot;http://dropdownwidthproblem.blogspot.com/2011/07/i-was-on-google-round-clock-for.html?spref=bl&quot;&gt;How to fix html drop down width problem in IE: html select box, dropdown problem in IE&lt;/a&gt;: &quot;I was on google round the clock for complete 2 days trying to get HTML SELECT(DROPDOWN/LIST BOX)  work the way my client wanted across all ...&quot;</content><link rel='replies' type='application/atom+xml' href='http://dropdownwidthproblem.blogspot.com/feeds/7517633930834093891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dropdownwidthproblem.blogspot.com/2011/07/how-to-fix-html-drop-down-width-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3299217711461373501/posts/default/7517633930834093891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3299217711461373501/posts/default/7517633930834093891'/><link rel='alternate' type='text/html' href='http://dropdownwidthproblem.blogspot.com/2011/07/how-to-fix-html-drop-down-width-problem.html' title='How to fix html drop down width problem on Internet Explorer'/><author><name>Ruchi Sinha</name><uri>http://www.blogger.com/profile/14809595238104367901</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3299217711461373501.post-8231170219379483354</id><published>2011-07-22T01:24:00.000-07:00</published><updated>2011-08-01T15:34:07.580-07:00</updated><title type='text'>html select box, dropdown problem in IE</title><content type='html'>&lt;script type=&quot;text/javascript&quot;&gt;

  var _gaq = _gaq || [];
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-24853564-1&#39;]);
  _gaq.push([&#39;_trackPageview&#39;]);

  (function() {
    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
  })();

&lt;/script&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I was on google round the clock for complete 2 days trying to get &lt;b&gt;HTML SELECT(DROPDOWN/LIST BOX)&lt;/b&gt; work the way my client wanted across all the browsers, specially the crazy IE (google chrome has just made things so simple :-)) This was my one of the initial website, when I started working.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Enuf about my thing now, lets see the problem u came looking for...hey wait, before you read more please check if you are at the right spot. Here is the image which show what I am trying to achieve...&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbhORGmlq-nv6lQhT5cko68RrkLyv5poy8rEUwrHY8GFvItkq6qSoNdUt1sX46-D6BCXPIJDvYnr69-0L7P9mDEwfM4HQZ_WrEYcBbEQUgx7gYcFrwVrv7TjK15isnNx_EhZDf7lHROyl9/s1600/Untitled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbhORGmlq-nv6lQhT5cko68RrkLyv5poy8rEUwrHY8GFvItkq6qSoNdUt1sX46-D6BCXPIJDvYnr69-0L7P9mDEwfM4HQZ_WrEYcBbEQUgx7gYcFrwVrv7TjK15isnNx_EhZDf7lHROyl9/s320/Untitled.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Often in a select box, not all the options are of same width, and for showing all the options clearly you have to set the width of the select box to the max option width. But when the option values are too large, this doesn&#39;t look good on webpage. The problem is if the dropdown width is less than the max width of the options, user can&#39;t see the option completely.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Chrome and Firefox work smartly but as always, its IE which continues to keep you bugging. Honestly speaking, I couldn&#39;t find a simple and exact solution which would help me (may be I was not as good as you while googling :-)).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;So here is how I fixed (&lt;a href=&quot;http://ruchi.rakeshsinha-online.com/blogs/dropdown_width_demo.zip&quot;&gt;download sample code&lt;/a&gt;):&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 1:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;Created a textbox, make it disabled and set the value to --Select or anything which you want as default.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 2:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt; Created a dropdown like arrow image and placed it at the extreme right of the text box.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 3:&lt;/span&gt; Created a HTML SELECT box with values (as large as you may want), make it hidden by default (style=&quot;display:none&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;this was all HTML, now some JavaScript (if you prefer, use JQuery instead)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 4:&lt;/span&gt; Create 3 Java Script functions for-&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;- toggling the show/hide of select box =&amp;gt; toggleSelectBox()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;- setting the value of select option from dropdown in the textbox =&amp;gt; pickOptionValue()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;- initialize the hide/show events =&amp;gt; init()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;(Checkout the zipped code for details)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 5:&lt;/span&gt; Invoked init() on body load (&amp;lt;body onLoad=&quot;init()&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 6:&lt;/span&gt; Added onClick() events to textbox and image to toggle the selectbox (&amp;lt;input type=&quot;text&quot; onClick=&quot;toggleSelectBox()&quot;&amp;gt;).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 7:&lt;/span&gt; Added onClick() event for selectbox(&amp;lt;select onClick=&quot;pickOptionValue(this)&quot;&amp;gt;).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I also did some styling to wrap all this into a div for more control, you can check the &lt;a href=&quot;http://ruchi.rakeshsinha-online.com/blogs/dropdown_width_demo.zip&quot;&gt;zipped&lt;/a&gt; code for more details.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Hope you would same sometime with my solution. If you have any comment, please drop your comments here...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;http://ruchi.rakeshsinha-online.com/blogs/dropdown_width_demo.zip&quot;&gt;Download Sample Code&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dropdownwidthproblem.blogspot.com/feeds/8231170219379483354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dropdownwidthproblem.blogspot.com/2011/07/i-was-on-google-round-clock-for.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3299217711461373501/posts/default/8231170219379483354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3299217711461373501/posts/default/8231170219379483354'/><link rel='alternate' type='text/html' href='http://dropdownwidthproblem.blogspot.com/2011/07/i-was-on-google-round-clock-for.html' title='html select box, dropdown problem in IE'/><author><name>Ruchi Sinha</name><uri>http://www.blogger.com/profile/14809595238104367901</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbhORGmlq-nv6lQhT5cko68RrkLyv5poy8rEUwrHY8GFvItkq6qSoNdUt1sX46-D6BCXPIJDvYnr69-0L7P9mDEwfM4HQZ_WrEYcBbEQUgx7gYcFrwVrv7TjK15isnNx_EhZDf7lHROyl9/s72-c/Untitled.png" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3299217711461373501.post-6777112883026079321</id><published>2011-07-22T00:44:00.001-07:00</published><updated>2011-08-01T15:33:04.000-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I was on google round the clock for complete 2 days trying to get &lt;b&gt;HTML SELECT(DROPDOWN/LIST BOX)&lt;/b&gt; work the way my client wanted across all the browsers, specially the crazy IE (google chrome has just made things so simple :-)) This was my one of the initial website, when I started working.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Enuf about my thing now, lets see the problem u came looking for-&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Often in a select box, not all the options are of same width, and for showing all the options clearly you have to set the width of the select box to the max option width. But when the option values are too large, this doesn&#39;t look good on webpage. The problem is if the width the less than the max width of the options, user can&#39;t see the option completely.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Chrome and Firefox work smartly but as always, its IE which continues to keep you bugging. Framkly speaking I couldn&#39;t find a properly solution which would help me (may be I was not as good as you while googling :-)).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;So here is how I fixed:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 1:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;Created a textbox, make it disabled and set the value to --Select or anything which you want as default.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNFVNGvuGWpxsHMd0n_qsPsew8aBaSI7rDkbnOnv7F6EJy_HamUY6DH7uvSDm3NPaam3UlDlaMV4BgQTomJrG2YqKDxMpRBEKwon1sxdD9Va4Ba9MRqTd8zGRVKKyvCmIX07s6oW-vat94/s1600/Untitled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNFVNGvuGWpxsHMd0n_qsPsew8aBaSI7rDkbnOnv7F6EJy_HamUY6DH7uvSDm3NPaam3UlDlaMV4BgQTomJrG2YqKDxMpRBEKwon1sxdD9Va4Ba9MRqTd8zGRVKKyvCmIX07s6oW-vat94/s320/Untitled.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 2:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt; Created a dropdown like arrow image and placed it at the extreme right of the text box.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 3:&lt;/span&gt; Created a HTML SELECT box with values (as large as you may want), make it hidden by default (style=&quot;display:none&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;this was all HTML, now some JavaScript (if you prefer, use JQuery instead)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 4:&lt;/span&gt; Create 3 Java Script functions for-&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;- toggling the show/hide of select box =&amp;gt; toggleSelectBox()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;- setting the value of select option from dropdown in the textbox =&amp;gt; pickOptionValue()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;- initialize the hide/show events =&amp;gt; init()&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;(Checkout the zipped code for details)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 5:&lt;/span&gt; Invoked init() on body load (&amp;lt;body onLoad=&quot;init()&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 6:&lt;/span&gt; Added onClick() events to textbox and image to toggle the selectbox (&amp;lt;input type=&quot;text&quot; onClick=&quot;toggleSelectBox()&quot;&amp;gt;).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #a64d79;&quot;&gt;Step 7:&lt;/span&gt; Added onClick() event for selectbox(&amp;lt;select onClick=&quot;pickOptionValue(this)&quot;&amp;gt;).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I also did some styling to wrap all this into a div for more control, you can check the zipped code for more details.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hope you would same sometime with my solution. If you have any comment, please drop your comments here...&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dropdownwidthproblem.blogspot.com/feeds/6777112883026079321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dropdownwidthproblem.blogspot.com/2011/07/i-was-on-google-round-clock-for_22.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3299217711461373501/posts/default/6777112883026079321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3299217711461373501/posts/default/6777112883026079321'/><link rel='alternate' type='text/html' href='http://dropdownwidthproblem.blogspot.com/2011/07/i-was-on-google-round-clock-for_22.html' title=''/><author><name>Ruchi Sinha</name><uri>http://www.blogger.com/profile/14809595238104367901</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNFVNGvuGWpxsHMd0n_qsPsew8aBaSI7rDkbnOnv7F6EJy_HamUY6DH7uvSDm3NPaam3UlDlaMV4BgQTomJrG2YqKDxMpRBEKwon1sxdD9Va4Ba9MRqTd8zGRVKKyvCmIX07s6oW-vat94/s72-c/Untitled.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>