I have a payment form in which user will input the amount in an input text field. I have another text field of the same form in which amount in words of the amount given by the user will be automatically written. But i am having problem that how i can extract the value of the field and pass it to the function which will convert the value. Please help me. This is the field where user will give input.
<div class="control-group form-group" style="padding-left:20px; padding-right: 20px;">
<div class="controls">
<label>Amount</label>
<input type="email" class="form-control" name="amount" id="amount" placeholder="Please enter amount"required/>
</div>
</div>
I have this field where the price should be written automatically. I have tried many ways but failed.
<div class="control-group form-group" style="padding-left:20px; padding-right: 20px;">
<div class="controls">
<label>Amount in words</label>
<input type="email" class="form-control" name="amountInWords" id="amountInWords" placeholder="Amount in words" value="<?php echo ?>">
</div>
</div>