<script>
    $(document).ready(function(){
        $(".submit_modal1").click(function(e){
            e.preventDefault();
            id = this.id;
            name = $("#fname_"+id).val();
            email = $("#email_"+id).val();
            phone = $("#phone_"+id).val();
            upload_resume = $("#upload_resume_"+id).val();
            $.ajax({
                type:"POST",
                data:{"id":id,"name":name,"email":email,"phone":phone,"upload_resume":upload_resume},
                url:"<?php echo base_url(); ?>send",
                success:function(data){
                    $("#send_hr").html(data);
                }
            });
            $("#upload_resume_"+id).change(function(){
                var file_data = $("#upload_resume_"+id).prop('files')[0];   
                var form_data = new FormData();                  
                form_data.append('file', file_data);
                $('#imgsss').html("<img src='<?php echo base_url(); ?>resource/loading.gif' />");
                $.ajax({
                    url: '<?php echo base_url(); ?>upload_resume',
                    dataType: 'text',
                    cache: false,
                    contentType: false,
                    processData: false,
                    data: form_data,                         
                    type: 'post',
                    success: function(php_script_response){
                        $("#imgsss").html(php_script_response);
                    }
                });
            });
        });
    });
</script>
In this code, I trigger two events i.e. click and change where I want to run $("#upload_resume_"+id).change(function(){}); inside $(".submit_modal1").click(function(e){}). Is it possible to do it or is there any other way to trigger both event simulteniously. How can I do this ?Please help me.
Thank You
 
    