javascript – How to get result in message box instead of div-ThrowExceptions

Exception or error:

I need to get result in message box instead of div. Currently the script is as given below:

<form id="bra-calculator"> <div class="title"> Enter measurements in inches</div> <div> <label for="rib-measurement">Enter rib measurement:</label> <input id="rib-measurement" name="rib-measurement" placeholder="Rib Measurement" type="number" /> <div class="error-messagebra"> Please enter a value equal to / greater than 24.</div> </div> <div class="half"> <label for="bust-measurement">Enter bust measurement:</label> <input id="bust-measurement" name="bust-measurement" placeholder="Bust Measurement" type="number" /> <div class="error-messagebra"> Your bust measurement must be at least 1 inch larger than rib.</div> </div> <input id="submit" type="submit" value="Calculate!" /> </form>

<div id="bra-results"> </div>

The URL is

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *