html - Update content of a form wrt to previous entries -
i'm trying update contents of form elements dynamically respect entries given other form elements.
here i've done till now-
<form action="invoice.php" method="get"> <input class="form-field" type="date" name="date" value="" placeholder="date"> <input class="form-field" type="text" name="product_name" value="" placeholder="product name"> <input class="form-field" type="text" name="units" value="" placeholder="product unit"> <input class="form-field" type="text" name="wholesale_price" value="" placeholder="whole sale price"> <input class="form-field" type="text" name="sell_price" value="" placeholder="sell price"> <input class="form-field" type="text" name="" value="" placeholder="profit"> <button type="submit" class="form-btn" name="button">add product</button> </form>
so when, i'll update last 4 form elements, profit calculated & shown in respected field. however, i'm not able it, because i've no idea it. please help.
get input form js calcuate , put in input can mane or use id , set data in input
Comments
Post a Comment