首页 > 解决方案 > 在文本框中插入 getValue + PhpRunner + Javascript OnLoad 事件

问题描述

我有一个关于 javascript onload 事件的简单代码:

var ctrlCodigo_referencia = Runner.getControl(pageid, 'Codigo_referencia');
var ctrlNave = Runner.getControl(pageid, 'Nave');

我有以下内容:

    // Test

ctrlNave.on('change', function(e){
if (this.getValue()!== ''){
alert(this.getValue()); //show popup with the value selected in the combobox

//ctrlCodigo_referencia.getValue('this');
ctrlCodigo_referencia.getStringValue();
}}); //that is a want to insert in textbox ctrlCodigo_referencia
// Test     

标签: javascriptinserttextbox

解决方案


我发现。

ctrlNave.on('change', function(e){
if (this.getValue()!== ''){
alert(this.getValue());
ctrlCodigo_referencia.setValue(this.getValue()) ;

谢谢大家


推荐阅读