i have a SELECT, and I want it to animate something onchange, heres the SELECT code:
<select id="account_select" onchange="submit_value()">
<option value="">Select account</option>
<option value="1">Account 1</option>
<option value="2">Account 2</option>
</select>
heres the jquery:
function show_keyboard ()
{
$('.keyboard').animate({bottom: '0px'}, 2000);
}
function submit_value ()
{
if (!is_number($('#account_select').val()))
{
alert('You must select an account');
}
else
{
show_keyboard();
}
}
the problem is, that after i select an account, i have to click somewhere on the screen in order for the keyboard to appear via the show_keyboard function. i don’t know why.
well i know that using jquery’s change function is a better approach…this issue seemed to resolve itself after a browser refresh.