How to know that a particular element is present or not?
<p>How to know that a particular input type is present or not in a <code>div</code>?</p>

<p>If I use</p>

<pre><code>$("#inputId").val()
</code></pre>

<p>And there is no element present on this, then js gives an error.</p>

<p>So how could I know that the input element named <code>inputId</code> is present or not?</p>

<p>Reply me ASAP</p>
