Unable to retrieve textbox value and subtract from it
<p>Ive a textbox with id fnlprce I want to retrieve its value on an event, subtract 50 from it and update it to the latest value, ive this piece of code to work over:</p>

<pre><code>function updateDiscount() {
    var iniprce = parseInt($("#fnlprce").text());
    var fnlprce = iniprce-50;
    $("#dscntdprce").html("Price: " + fnlprce + ");
    $("fnlprce").html(fnlprce);
}
</code></pre>

<p>But something getting wrong as it is showing, ‘NaN’ in the output, guidance please :)</p>
