Question on dividend

if I sell shares on the next day of ex dividend date will I be eligible to get dividend of the share ?

Yes, you will receive the dividends directly to your bank account even if you have sold your holdings after the ex-date date or on the record date. In some cases dividends will be subjected to TDS. More information here.