if(response==="success"){
					$('<p></p>&nbsp;|').appendTo('form textarea').html(''+file);
				} else{
					$('');
				}

Hi!, I'm trying and playing arround with the .appendTo, to specify only on one text area, rather than .appendTo to every text area, is there any way to do that? or it is not possible? i try with the "div" and "id" "p" somehow it doesn't work.. :/

thank you all! :)
Charles

Recommended Answers

All 2 Replies

how about this?

HTML code:

[div id="myTextArea"]
[textarea name="ta1" id="ta1" rows="5" cols="75"][/textarea]
[/div]

JS code:

$("textarea#ta1").appendTo("div#myTextArea");

Yes...Veeliang code was good. You can refer any where by using this div id="My Text Area" in html code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.