warlockdn
04-21-2012, 01:39 PM
Hey Guyz,
Need a urgent help.. I am very bad at javascript and I need to do this job done for my client.
Created a quote form.. All is done..
Now I want is
Initial Amount is $220 and the textbox asks for how many rooms ?
If there is one room then the price is $220 bt if more than 1 room it +$150 (per room)
Can you guyz help me with this.. The calculation has to happen without form submission. I tried googling but all are of very long messy code and I wanted in a very intermediate level..
Here the code goes..
<form action="mailer.php" name="calc">
<input type="hidden" value="220" name="price"/>
<label>How many rooms ? </label> <input type="text" name="room" onchange=" ???function() ??? "/>
<input type="hidden" name="total" value=" ?? Dynamically calculated value ?? " />
<div class="total"> Total Value Here (static) </div>
<button type="submit" name="submit" />
</form>
Please help me with this..
Thanks
Need a urgent help.. I am very bad at javascript and I need to do this job done for my client.
Created a quote form.. All is done..
Now I want is
Initial Amount is $220 and the textbox asks for how many rooms ?
If there is one room then the price is $220 bt if more than 1 room it +$150 (per room)
Can you guyz help me with this.. The calculation has to happen without form submission. I tried googling but all are of very long messy code and I wanted in a very intermediate level..
Here the code goes..
<form action="mailer.php" name="calc">
<input type="hidden" value="220" name="price"/>
<label>How many rooms ? </label> <input type="text" name="room" onchange=" ???function() ??? "/>
<input type="hidden" name="total" value=" ?? Dynamically calculated value ?? " />
<div class="total"> Total Value Here (static) </div>
<button type="submit" name="submit" />
</form>
Please help me with this..
Thanks