Hi,
i have page called data having price and item check boxes along with value.
if user clicks on the check box accordinly another page called total should get updated. This has to be done by javascript
Regards
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Om prakash Singh126 reputationPosted Jul 11, 2011, 11:03 PM EDT
if your data page is open by using javascript function
window.open() as a pop up page from total page.
Then you can pass the current total amount in querystring and
on checkbox click event call javascript function.
In javascript function,
add the values and use
window.opener.document.forms[0].getElementById('control ID of toptal page").value =yourvalue;
to assign the value to update the total of total page.
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 11, 2011, 11:08 PM EDT
Checkbox:
get the value:
if(document.form.chkbox.checked==true)
{
var abc= document.form.chkbox.value;
}
Refer:
http://www.netevolution.co.uk/scripts.asp?ID=25
i hope it help you..
Sutha Shalini96 reputationPosted Jul 11, 2011, 11:20 PM EDT
i have data.html page in that two values with check boxes for each, when the check box is selected, the summation of both the values should be displayed in the total.html page
thanks
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 12, 2011, 2:20 AM EDT
refer this Link
hope it resolve ur problem...