奇怪的需求,谢谢
请问我如何在request.getParameter( "dddd ")得到以下的值,注意,我并不是要取input里的值,而是要div内的字符串
<div name= "dddd ">
<input name= "c_sort " type= "checkbox " id= "c_sort " value= "处方药 " > 处方药
<input name= "c_sort " type= "checkbox " id= "c_sort " value= "甲类非处方药 "> 甲类非处方药
<input name= "c_sort " type= "checkbox " id= "c_sort " value= "乙类非处方药 "> 乙类非处方药
</div>
如果你有其他办法不用div也可以,我只要得到某范围内的字符串
------解决方案-------------------- <div name= "dddd " id= "dddd ">
<input name= "c_sort " type= "checkbox " id= "c_sort " value= "处方药 " > 处方药
<input name= "c_sort " type= "checkbox " id= "c_sort " value= "甲类非处方药 "> 甲类非处方药
<input name= "c_sort " type= "checkbox " id= "c_sort " value= "乙类非处方药 "> 乙类非处方药
</div>
<script>
alert(document.getElementById( "dddd ").innerHTML);
alert(document.getElementById( "dddd ").innerText);
</script>