Calling jS function in a Modal Popup
23:13 08 Apr 2023

I have a table consisting of different records fetched from a database. There is one button infront of every record. This button is used to open the corresponding record in a modal popup.

This modal popup is also used for updating that record. The popup is opening fine, but it seems that the JS function inside the element of this popup not working.

I have two radioboxes as 'hard copy' and 'soft copy' in that modal. The moment I click on "soft copy", one input type file should be visible and on clcik on other button, it should be hidden - but it is not working.

My JS is correct as it is working fine on a normal page.

What may be reason for this?


Hard Copy Soft Copy

Questions

  1. Is there any special syntax to call the id of modal popup.
  2. I have included library files in the base page do it need to include them again in the modal popup

Any information about this type of problem is highly appreciated.

javascript html bootstrap-4 modal-dialog bootstrap-modal