I got two text boxes whose values are yes and no.and when i type yes in first text box, it beeps and when i move to next text box and haven’t written(left empty) any thing but still it beeps. dont know what might be the cause..
if ($('#test').val() == 'YES') {
navigator.notification.beep(1);
}
if ($('#test').val() == 'NO') {
navigator.notification.beep(1);
}