Jquery unable to accept getelementbyid value from previous function

Jquery unable to accept getelementbyid value from previous function

Dear Friend,

I have two functions and i am running one by one via button 'SUBMIT DATA'. I am using php and ajax also.

1. check_all_data() >> checking all the data entry and error is displaying in <DIV> element for individual data

2. save_all_data()  >> it is saving data if there are all valid data.

issue

1. But is is not doing properly.

2. whenever I am going all the data entry field one by one one the system is doing properly.

I am sending herewith the functions, kindly guide me in this regard.

Thanks with best regards,

Soumitra Sarkar