load() function
load() function
hey guys im currently using the load() function to load a report form inside a div container...this works beautifully.
but how can i detect when form is submitted after form is loaded please?
- var report_button = $('#report-txt');
report_button.click(function(){
var item_id = $(this).data('item-id');
if (item_id !== null){
$('#report-item-container').load('item/' + item_id + '/report', function() {
$(this).show();
});
}
});
thank you