How to use Javascript to manipulate modal content?

后端 未结 1 948
余生分开走
余生分开走 2021-01-16 19:28

I am using bootstrap modals and Ruby on Rails. I was able to display the modal fine but I am having trouble using Javascript to manipulate the contents of the modal. I am no

1条回答
  •  花落未央
    2021-01-16 20:34

    $('#modals .modal').on('shown.bs.modal', function () {
      // do something… 
    });
    

    0 讨论(0)
提交回复
热议问题