This topic is locked

javascript OnPageLoad

4/5/2017 5:32:32 AM
PHPRunner General questions
jgeorgiou author

var ctrlprice = Runner.getControl(pageid, 'price');

var ctrlquantity = Runner.getControl(pageid, 'quantity');

var ctrltotal = Runner.getControl(pageid, 'total');
ctrlquantity.on('click', function(e){

ctrltotal.setValue((+ctrlprice.getValue())*(+ctrlquantity.getValue()));

});
ctrlquantity.on('keyup', func);

ctrlprice.on('keyup', func);
This javascript doesn't firedup and total doent get value when someone changes quantity

any idea?

jgeorgiou author 4/5/2017

found the problem but i need another answer about
ctrlquantity.on('click', function(e){
we can use trigger click , change , what else can we use?