JSON return populates field, now need to apply that value to make select option selected
<p>JSON - JQUERY
Here is what I get back from JSON return from my CFC</p>

<p>{"thename":"Disabled","displayname":"Currently Helium House Gas is Unavailable to select, contact xxxxxx@xxx.com for more information."}</p>

<p>My input name="thename" gets populated with the value "Disabled" all good...</p>

<p>Now I have a select </p>

<pre><code>&lt;SELECT id="Enablor" name="Enablor"&gt; 
&lt;OPTION value="Enabled"&gt;Enabled&lt;/option&gt;
&lt;OPTION value="Disabled"&gt;Disabled&lt;/option&gt;
&lt;/SELECT&gt;
</code></pre>

<p>I want to take the ---  "thename":"disabled"  if disabled make the option disabled selected
"thename":"enabled"   if enabled make the option enabled selected</p>

<p>It is only going to be one or the other.  I want to do this in my return sucess jquery.</p>

<pre><code>$.ajax({             
url: "changedisablesysequipment.cfc?method=getName"
,cache: false
,dataType: "json"            
,data: {lastname: datas}
, success: function (data){
$("#frmMain").formHash(data);
alert($('#thename')[0]);// this just shows [object]
Want to make option selected here
}
</code></pre>
