日期:2014-05-16 浏览次数:20381 次
function formateParam(value, row, index) {
if (row.PARAM_CODE == "AutoAllot") {
if (value == 1) {
return '<input type="radio" name="param_value" id="onRadio" value="1" checked="checked"/>开启' + '<input type="radio" name="param_value" id="offRadio" value="0" />关闭';
} else
return '<input type="radio" name="param_value" id="onRadio" value="1" />开启' + '<input type="radio" name="param_value" id="offRadio" value="0" checked="checked"/>关闭';
} else
return "<input type='text' style='width:30px;' name='param_value' value='"
+ value + "'>(元)";
}
function save() {
var selected = $("#gridlist").datagrid("getSelected");
if (!selected)
return;
$("#gridlist").datagrid("endEdit", index);
alert(selected.PARAM_VALUE);...}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
function save(){
$(function(){
alert($("#gridlist input[name='param_value1']").val());
alert($("#gridlist input[name='param_value']").val());
})
}
</script>