Display Bootstrap Modal using javascript onClick

后端 未结 4 1518
时光取名叫无心
时光取名叫无心 2021-02-03 20:48

I need to be able to open a Twitter bootstrap modal window using the onClick=\"\" or similar function. Just need the code to go into the onClick=\"\".

4条回答
  •  面向向阳花
    2021-02-03 21:18

    You don't need an onclick. Assuming you're using Bootstrap 3 Bootstrap 3 Documentation

    Clickable content, graphics, whatever

    If you're using Bootstrap 2, you'd follow the markup here: http://getbootstrap.com/2.3.2/javascript.html#modals

提交回复
热议问题