jQuery auto detect if I need to use .html() or .val()
<p>I am writting a jquery plugin to create ajax calls designed for my app. </p>

<p>Inside this plugin, my ajax call looks like this (reduced to what the question need) :</p>

<pre><code>    $.ajax({
        url: route,
        type: "post",
        data: inputData,
        success: function(response, textStatus, jqXHR) {
            if (outputSelector !== undefined) {

                $(outputSelector).html(response);
                // or
                $(outputSelector).val(response);

            }
        }
    });
</code></pre>

<p>outputSelector is a selector, defined outside the plugin. I do not know if this selector is a <code>&lt;div&gt;</code> or an <code>&lt;input&gt;</code> or even a <code>&lt;select&gt;</code>. Is there a smart way to know if I need to use val(), or html() ?</p>
