I am trying to set a variable in jQuery. The value is supposed to be set on the click event of the button. The onclick event fires but the x10Device variable remains u
u
Use plain javascript methods
$x10Device = this.dataset("x10");