<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Textbox hide and show with button click' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Textbox hide and show with button click' posted on the 'Active Server Pages' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 07:41:22 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 07:41:22 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Textbox hide and show with button click</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/237348/237348/textbox-hide-and-show-with-button-click/</link>
      <description>hello everybody&lt;br /&gt;
&lt;br /&gt;
i am new to ASP.  I want to know that how can i hide textbox and show textbox on button's click.  Please help me in this context.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/237348/237348/textbox-hide-and-show-with-button-click/</guid>
      <pubDate>Mon, 19 Jan 2004 05:49:49 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
    <item>
      <title>Re: Textbox hide and show with button click</title>
      <link>http://www.programmersheaven.com/mb/aspfaq/237348/239354/re-textbox-hide-and-show-with-button-click/#239354</link>
      <description>Button click? It sounds like client side activity so you can handle it with javascript. Here's a sample:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt; &lt;br /&gt;
&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;
// toggle visibility &lt;br /&gt;
&lt;br /&gt;
function toggle(id){ &lt;br /&gt;
  if (document.getElementById){ &lt;br /&gt;
        el = document.getElementById(id); &lt;br /&gt;
           if (el.style.display == "none"){ &lt;br /&gt;
              el.style.display = ""; &lt;br /&gt;
           } else { &lt;br /&gt;
              el.style.display = "none"; &lt;br /&gt;
           } &lt;br /&gt;
     } &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/script&amp;gt; &lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;input type='button' name='button1' value='Show/Hide textbox' onclick="toggle('id1');return false;" /&amp;gt;&lt;br /&gt;
&amp;lt;input type="text" id='id1' /&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Well, if it's about a choice that will make something happen on the server, you must deal with that server-side.&lt;br /&gt;
&lt;br /&gt;
: hello everybody&lt;br /&gt;
: &lt;br /&gt;
: i am new to ASP.  I want to know that how can i hide textbox and show textbox on button's click.  Please help me in this context.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;&lt;span style="color: Grey;"&gt;To err is human, but to really foul things up requires a computer. (Farmers Almanac)&lt;/span&gt; &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/aspfaq/237348/239354/re-textbox-hide-and-show-with-button-click/#239354</guid>
      <pubDate>Thu, 29 Jan 2004 05:45:36 -0700</pubDate>
      <category>Active Server Pages</category>
    </item>
  </channel>
</rss>
