I’m trying to .Find() a TextArea inside a Div

 <div id='bla'>
   <textarea type='text' style='text-align:center; color:black; width:90px; border:1px     
    solid transparent; font-size:11px; margin:2px'>this is a test</textarea>
 </div>​​​​​​​​​​​​

 alert($('bla').find('textarea').css('border'))

but for some reason this returns 'undefined' any ideas why? I'm defining a border inside that style... :/

jsfiddle: http://jsfiddle.net/foreyez/yWgqD/



Read more here: https://stackoverflow.com/questions/10112252/im-trying-to-find-a-textarea-inside-a-div

Content Attribution

This content was originally published by Shai UI at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: