js 函数里的值传不到另一个函数中去
<scripttype="text/javascript">var$checkboxValue;functiongetCheckboxId(x){$checkboxVal...
<script type="text/javascript">
var $checkboxValue;
function getCheckboxId(x){
$checkboxValue = document.getElementById(x).value;
//alert(getCheckboxId.checkboxValue);
//return checkboxValue;
};
//alert(getCheckboxId.checkboxValue);
function getRadioId(x,y){
var radioValue = document.getElementById(x).value;
document.getElementById(y).value = $checkboxValue;
alert(document.getElementById(y).value);
}
</script>
没事了,是我调用函数出错了 展开
var $checkboxValue;
function getCheckboxId(x){
$checkboxValue = document.getElementById(x).value;
//alert(getCheckboxId.checkboxValue);
//return checkboxValue;
};
//alert(getCheckboxId.checkboxValue);
function getRadioId(x,y){
var radioValue = document.getElementById(x).value;
document.getElementById(y).value = $checkboxValue;
alert(document.getElementById(y).value);
}
</script>
没事了,是我调用函数出错了 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询