how to check if textarea field exist on form with jquery or javascript?
<pre><code>$("textarea").cleditor({ width: "800px", height: "300px" })[0].focus();
</code></pre>

<p>but when i do not have textarea felad i get</p>

<pre><code>Error: $("textarea").cleditor({width: "800px", height: "300px"})[0] is undefined
</code></pre>

<p>how can i check if textarea field exist. </p>

<p>I try ($("textarea").val()) but not working correctly. I also try value() but also not working. How can i check if exist or not?</p>
