开发者

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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜