@Sachin G K1 

for modal to work it should be a form and then using some UI action modal should be opened

but in your case it's not form

If my response helped please mark it correct and close the thread so that it benefits future readers.