- 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.