expand div when use clicks in text box?
Posted
by Joel
on Stack Overflow
See other posts from Stack Overflow
or by Joel
Published on 2010-03-15T04:44:08Z
Indexed on
2010/03/15
4:49 UTC
Read the original article
Hit count: 272
jQuery
|JavaScript
I'd like to have a div expand to show contents when a user clicks their mouse in a text box to enter text. I haven't seen that around anywhere before. I know how to make things expand onClick, but can someone point me to what I'm looking for?
Basically, I have an email signup box that I just want to show the input field for the email address, but if the user actually decided to get on the email list, that div will expand to also ask them for their name and zipcode.
Thanks!
I've got jquery already set for the email form now, so I'd like to expand on that if possible:
© Stack Overflow or respective owner