use the jquery submit event