String manipulation in Javascript code
<p>I have two text boxes on my Form. One is <code>txtNumberOfTablets</code> and the other one is <code>txtTotalQuantity</code>.</p>

<p>I have a HiddenField and I am setting its value in code behind file on page load.</p>

<p><code>hdfMedicationDosage = "2/3/4";</code></p>

<p>What I want is, whatever user enters to <code>txtNumberOfTablets</code> textbox, should be multiplied with <code>hdfMedicationDosage</code> value when focus is out of <code>txtNumberOfTablets</code>.</p>

<p>For example <code>txtNumberOfTablets</code> contains value 2, and focus is out of <code>txtNumberOfTablets</code>, then that <code>txtTotalQuantity</code> will have a value <code>2*2/3*2/4*2</code> i.e.<code>4/6/8</code></p>

<p>I want to achieve this in JavaScript. Any help would be appreciated.</p>
