Inputing results to inArray from .html (or innerHtml) and making it work
<pre><code>$("form").submit(function () {
if ($.inArray($("input:first").val().toUpperCase(), ["UNITED STATES", "USA", "AMERICA"]) &gt; -1) {
//function here
});

&lt;div class="answers"&gt;"UNITED STATES", "USA", "AMERICA"&lt;/div&gt;

$("form").submit(function () {
if ($.inArray($("input:first").val().toUpperCase(),  [$(".answers").html()]) &gt; -1) {  
//function here
});
</code></pre>

<p>Within the div with the class answers I have the results I need to validate. When I use jquery function .html the results print out fine, but when it validates it needs to validate the whole sentence : "UNITED STATES", "USA", "AMERICA" not every answer on its own like it does on the first function. How can I make this work?</p>
