$("textarea").cleditor({ width: "800px", height: "300px" })[0].focus();
but when i do not have textarea felad i get
Error: $("textarea").cleditor({width: "800px", height: "300px"})[0] is undefined
how can i check if textarea field exist.
I try ($("textarea").val()) but not working correctly. I also try value() but also not working. How can i check if exist or not?