This project has moved and is read-only. For the latest updates, please go here.

how get id of textarea

Mar 4, 2010 at 9:57 PM
Edited Mar 4, 2010 at 9:58 PM


i have two (or more) textarea in my form.

i set jhtmlArea by className:

$(document).ready(function() {$('.editorHTML').htmlarea({
toolbar: [["html"],
["bold\", "italic", "underline"], 
["p", "h1", "h2", "h3"], 
["link", "unlink"],
 css: "image",text: "Apri gallery",
 action: function() {
 loaded: function() { alert(ID_OF_ELEMENT)}

i do this because i don't know the ID of the textarea and how element i have in the form.
my question is: how i can get the ID of the texrarea and pass it to function "myfun"?