Jump to content


This topic is now archived and is closed to further replies.


help changin a value

Recommended Posts


I have a form,

where i have a field

Featured and they can select yes or No.

If they select no i want a price field that says £5.00 and if they select yes i want a price field that says £10.00.

any help please?

Share this post

Link to post
Share on other sites

Try maybe something like that,
function ShowPrices(node)
var prices=node.value;
function Hideprice()

<form name="test">
Please, select an option:
<input type="radio" name="pricing" value="£5.00" onclick="ShowPrices(this);">price A
<input type="radio" name="pricing" value="£10.00" onclick="ShowPrices(this);">price B
<div id="price" style="visibility:hidden;border-color:blue;border-width: 1px;border-style: solid;width:50px;" ></div>
<input type="submit" name="Request" value="Submit">
<input type="reset" name="Clear" value="Clear form" onclick="Hideprice()">
example done with radio buttons, but you can transpose it using checkboxes, selectbox,...

Hoping it helps,,


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.