Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1355
change value on event ignumericeditorkeydown
posted

hello

please help me!

i have an numeric editor. i want to change value on event keydown but i don't know how to

here is my code

$(document).delegate("#cpsngIssueAmt", "ignumericeditorkeydown", function (evt, ui) {
var code = evt.originalEvent.keyCode;
if (code == 77) {
  var tmpValue = $("#" + ui.owner.options.inputName).igNumericEditor('value');
    if (tmpValue != undefined && tmpValue != null && tmpValue != "") {
      $("#" + ui.owner.options.inputName).igNumericEditor('value', tmpValue * 1000);
    }
  }
});

i wish when user press 'm' and then i set the numeric editor value = current value * 1000. but nothing happends

can you help me

thank you very much!

Parents Reply Children
No Data