How to display number in textbox for a particular option?
<p>I need helping appending values into a textbox. What happens is that with the relevant piece of code below, the user can add an "Option Type" from a table row into the textbox. For example if the user clicks on the "Add" button and within that row the Option Type is  "True or False", then I want it to display number 27 in the textbox, and if "Option Type" is "Yes or No" then display number 28 in the textbox. So I want it like below</p>

<pre><code>Option Type             Number

True or False           27
Yes or No               28
</code></pre>

<p>My question is how can insert the numbers for the 2 option types into the textbox?</p>

<p>I tried this below for True or False but it did not work:</p>

<pre><code>var myNumbers = {};

   myNumbers["True-False"] = "27";

   gridValues = myNumbers[gridValues];
</code></pre>

<p>Below is the true and false buttons:</p>

<pre><code>&lt;input name="answerTrueName"  id="answerTrue"   type="button"   value="True"    onclick="btnclick(this);"/&gt;
&lt;input name="answerFalseName" id="answerFalse"  type="button"   value="False"   onclick="btnclick(this);"/&gt;
</code></pre>
