jQuery, get ID of a textarea -


i've got form text field defined follow:

<textarea style="height: 60px; width: 100%;" name="f3414" id="f3414" rows="6" cols="80" wrap="virtual" class="frmtxa fckeditor"></textarea> 

i need, using jquery, textarea id (in case, f3414).

i've tried:

$('textarea .fckeditor').attr('id');  $('.fckeditor').attr('id'); / ... no luck. 

any idea?

thanks lot

alert($('textarea.fckeditor').attr('id')); 

you have space between textarea .fckeditor in original question, removing make difference

working example : here


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -