Jump to content
  • Advertisement
Sign in to follow this  
Brainx7

how to show()/remove() a textarea with jquery

This topic is 1574 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I found this code http://jsfiddle.net/uhv5R/5/ which shows and hides with a selection but I want to remove it instead of hiding it when select is no. I used the function remove() for this but when I choose yes again it wont show it again, is like once you choose remove thats it its gone. Ho could I do this

Share this post


Link to post
Share on other sites
Advertisement

So, you want to "remove instead of hiding", but then you want to show it again? If you want to show it again then hiding it makes much more sense.

Edited by DiegoSLTS

Share this post


Link to post
Share on other sites

$('.Option > textarea:last').last().remove();

.
.
.

$('<textarea ></textarea>').fadeIn('fast').appendTo('.Option');


I, um... wat.

?__? Edited by fastcall22

Share this post


Link to post
Share on other sites

 

$('.Option > textarea:last').last().remove();

.
.
.

$('<textarea ></textarea>').fadeIn('fast').appendTo('.Option');

I, um... wat.

?__?

 

lol the original fiddle was different I made a couple of changes, if that's what you are implying

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!