How to find the active editarea in jquery
I am using editarea editor in content management system. In my page there are 3 editarea, so how can i find the editarea id when it is activ开发者_Go百科e, ie need to find in which editarea the cursor is pointing.
You can find with jquery
var id;
$("textarea").focus(function () {
id = this.id;
});
or
var id = $("*:focus").attr("id");
精彩评论