I have an image
<input type="image" onclick="javascript:form1.ACTION.value='Edit';
form1.cin.value='100104213';
form1.histSeq.value='85258';
form1.typeCd.value='BL';
form1.RMC_CONFLICT_STATUS.value='';
form1.submit();
return false"
alt="Click to edit this record."
title="Edit Row"
src="/images/editImage.gif" name="editButton">
If you look closely I have some statements which is executed onClick of the image.
Now during the onload I want to associate an event(can be onlick) which should be called before the statements.
I tried with
$('#grid0').find('#'+(i+1)).find('input:image').on('click',function(){
console.log('Test');
});
But this is called after the statements.