By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,137 Members | 1,472 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,137 IT Pros & Developers. It's quick & easy.

showing a DEFAULT HIDDEN TEXT BOX on button click

P: 2
I want to hide a textbox whenever my page loads..
Then on a button click event.., I want the hidden textbox to become visible ..
Is this possible ?
Please do help me ..
Feb 5 '14 #1
Share this Question
Share on Google+
5 Replies

Expert Mod 10K+
P: 12,427
This thread has been moved to the javascript forum because php is server side and what you want to do is client side.
Feb 5 '14 #2

Expert Mod 5K+
P: 8,639
Is this possible ?
yes. let JavaScript simply change the text fields class name that is applying the hiding CSS.
Feb 6 '14 #3

P: 2
can u suggest me a working code ??
Feb 6 '14 #4

Expert Mod 5K+
P: 8,639
we’re not a free coding service.

but if you have anything, we will help on it.
Feb 6 '14 #5

P: 638
include jquery.js to your page and use

Expand|Select|Wrap|Line Numbers
  1. <script type='text/javascript'>
  2. ('#fieldname').toggle();
  3. </script>
Feb 8 '14 #6

Post your reply

Sign in to post your reply or Sign up for a free account.