Get The Id Of A Textarea From This Html Form With JQuery
Need help getting and using the id of a textarea so that I can replace it with a ckEDITOR. So here is the html output: NOTE: This is the output of a foreach loop, for every databas
Solution 1:
You are looking for the .checkeditor
element from the .edity
element. Instead you can do:
$(document).on('click','.edity',function() {
var editorID = $(this).parents('.blogtest').find('.ckeditor').attr("id");
CKEDITOR.replace(editorID);
});
Post a Comment for "Get The Id Of A Textarea From This Html Form With JQuery"