modal info from click on a picture

modal info from click on a picture

joon49joon49 Posts: 12Questions: 2Answers: 0

Hi,

I would like to launch a modal info from a line by clicking on an image.

but I don't know how I should proceed.

Can you help me please?

thanks for the advance.

Answers

  • kthorngrenkthorngren Posts: 20,355Questions: 26Answers: 4,776

    Start with this example. You can change the selector to be more specific to the td the image is in. In place of the alert you can build your modal with the row or cell data.

    Kevin

  • allanallan Posts: 61,805Questions: 1Answers: 10,118 Site admin

    Could you clarify how this relates to DataTables please? If you are looking for general Javascript programming advice, you would be better to ask on StackOverflow. This forum is specifically about DataTables.

    More specifically, in this case, you should refer to the documentation for whatever modal library you are using for how to launch it. e.g. for Bootstrap modals, refer to their documentation.

    Allan

Sign In or Register to comment.