Hi, I am currently trying to use jquery to enter a selection from a dropdown into a text box, simulate a click to select it, press return, wait for some processing and then press return again. It's quite a nasty way of getting what I need but it's the only way I can see at the moment. Here is the code:
$('#fav').change(function()
{
$('#contract_input').val($('#fav').val());
$('#contract_input').trigger('click');
e = jQuery.Event("keypress");
e.which = 13;
$('#contract_input').trigger(e).delay(500).trigger(e);
}
The issue I am having is that IE8 is giving an error on the page:
'Event' is not defined
The click seems to work, it's just the return that does not.
Any ideas?
Many thanks
Cap