I have a pageblock table where i can do some inline editing. But the last editd field is not getting saved. I need to explicitely click elsewhere after editing the field and then click on save and it works fine. For that workaround i have used a jquery method that calls trigger.("blur") oncomplete of that command button. But its not working. the Save method is not being called at all in this scenario :
here is the code :
<script>
function triggerBlurEvents()
{
$("input").trigger("blur");
Save();
}
</script>
<apex:actionFunction name="Save" action="{!Save}" reRender="thePageBlock" />
<apex:commandButton value="Save" oncomplete="triggerBlurEvents();" id="saveButton" style="display:none" />
Please suggest any work around. thanks !