如何将值传递给jquery网格 [英] how pass value into jquery grid
本文介绍了如何将值传递给jquery网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Dear all,
We are trying to pass <b>lblparameter</b> value into grid but here value is not updated
please help me out how to pass that lbl parameter value into jquery grid.
$("#ddlCMParameterEnterResults").change(function () {
var stationName = $("#ddlCMParameterEnterResults option:selected").text();
lblParameter = stationName;
jquery grid:
script = "";
script += "<tr><td align='center' style='width:5%'>" + data.d[i].SNO + "</td>
<td><textarea cols='15' style='width:10%' rows='1'<b>lblParameter.innerHTML</b</b>> + "'</textarea></td><td><textarea align='center' style='width:15%' rows='1'>" + data.d[i].Type + "</textarea></td><td><textarea align='center' style='width:20%' rows='1'>" + data.d[i].Position + "</textarea></td><td><textarea cols='25' style='width:20%' rows='1'>" + data.d[i].PARTICULARS + "</textarea></td><td><textarea cols='25' style='width:20%' rows='1'>" + data.d[i].DESIGN_REQUIREMENT + "</textarea></td><td><textarea cols='25' style='width:20%' rows='1'>" + data.d[i].CALIBRATOIN_RESULT + "</textarea></td>";
推荐答案
(#ddlCMParameterEnterResults)。 (function(){
var stationName =
("#ddlCMParameterEnterResults").change(function () { var stationName =
(#ddlCMParameterEnterResults option:selected)。text();
lblParameter = stationName;
jquery grid:
script =;
script + =< tr > < td align =' center' style =' width:5%' > + data.d [i] .SNO +< / td >
< td > & lt; textarea cols ='15'style ='width:10%'rows ='1'< b > lblParameter.innerHTML < / b< / b > > +'& lt; / textarea> < / td > < td > ; & lt; textarea align ='center'style ='width:15%'rows ='1'> + data.d [i] .Type +& lt; / textarea> < / td > < td > & lt; textarea align ='center'style ='width:20%'rows ='1'> + data.d [i] .Position +& lt; / textarea> < / td > < td > & lt; textarea cols ='25'style ='width:20%'rows ='1'> + data.d [i] .PARTICULARS +& lt; / textarea> < / td > < td > & lt; textarea cols ='25'style ='width:20%'rows ='1'> + data.d [i] .DESIGN_REQUIREMENT +& lt; / textarea> < / td > < td > & lt; textarea cols ='25'style ='width:20%'rows ='1'> + data.d [i] .CALIBRATOIN_RESULT +& lt; / textarea> < / td > ;
("#ddlCMParameterEnterResults option:selected").text(); lblParameter = stationName; jquery grid: script = ""; script += "<tr><td align='center' style='width:5%'>" + data.d[i].SNO + "</td> <td><textarea cols='15' style='width:10%' rows='1'<b>lblParameter.innerHTML</b</b>> + "'</textarea></td><td><textarea align='center' style='width:15%' rows='1'>" + data.d[i].Type + "</textarea></td><td><textarea align='center' style='width:20%' rows='1'>" + data.d[i].Position + "</textarea></td><td><textarea cols='25' style='width:20%' rows='1'>" + data.d[i].PARTICULARS + "</textarea></td><td><textarea cols='25' style='width:20%' rows='1'>" + data.d[i].DESIGN_REQUIREMENT + "</textarea></td><td><textarea cols='25' style='width:20%' rows='1'>" + data.d[i].CALIBRATOIN_RESULT + "</textarea></td>";
这篇关于如何将值传递给jquery网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文