Unable to delete the entered number in the input field
Hi, in my app i have some inputs with number, and when user click BLUE key when input has class activeStep, then app call deleteLastChar(). In Philips devices it not work, but in STA emulator works fine, anybody knows why? I put some code bellow:
P.S. I don't have a real Philips device, only test in STA emulator.
- Code: Select all
//html
<div id=\"amountOut\" class=\"cursorHand activeStep\">
<p id=\"amountOutText\">Amount:</p>
<input id=\"amountOutInput\" type=\"text\" size=\"15\" maxlength=\"11\" value=\"5000\" />
</div>
//js
case VK_BLUE:
if($('#calcForm .activeStep').find('input').length > 0){
deleteLastChar();
}
break;
....
function deleteLastChar() {
$('#amountOutInput').val($('#amountOutInput').val().slice(0,-1));
// etc not important
}
P.S. I don't have a real Philips device, only test in STA emulator.