I have to add an input with a name of "btnupdateprice" that I first have to dynamically insert it into the page (hidden of course) and then trigger it. Is there a way to do this without inserting it into the page like the following? A shortcut perhaps?
$("input[type='hidden'][name='ProductCode']").before('<input type="image" border="0" name="btnupdateprice" src="blank_image.gif" style="display: none;">');
$('input[name=btnupdateprice]').trigger('click');