Identify which control my application is using
<p>I got a method into my masterpage wich populates a value to every label I pass:</p>

<pre><code>function FillLabel(field, text) 
{
  $(field).html(text);
}
</code></pre>

<p>I'll need to make it adaptable to the situation that my <code>field</code> recieve an html input and to put the text inside this input I need to use <code>$(field).html(text);</code></p>

<p>I need to build an if to identify the type of the <code>field</code>and I have no idea how to do that. Could you guys help me ?</p>
