$("textarea").cleditor({ width: "800px", height: "300px" })[0].focus();
,但是当我没有textarea的felad我得到如何检查textarea字段是否存在与jQuery或JavaScript的窗体?
Error: $("textarea").cleditor({width: "800px", height: "300px"})[0] is undefined
我怎么能检查是否textarea的领域存在。我尝试($(“textarea”)。val())但不能正常工作。我也尝试价值(),但也没有工作。我如何检查是否存在?
重复的http://stackoverflow.com/questions/31044/is-there-an-exists-function-for-jquery – v42