[eluser]JasmineFlower[/eluser]
Hi,
My javascript code is
Code:
function checkedSelectedProduct()
{
var ischk=document.getElementById('plant_li').checked;
if(ischk)
{
var priceid=1;
var pval=getprice(priceid);
document.getElementById('plant_li_txt').value = pval;
}
else
{
document.getElementById('plant_li_txt').value = 0;
document.getElementById('plant_li_txt').focus();
}
}
function getprice(priceid)
{
var url = base_url + "welcome/getsubscription_price/";
$.post( url , { 'priceid': priceid } , function(result) { });
}
i want to return
result value to function checkedSelectedProduct.
How?