New window with content from modal content on opener page

前端 未结 3 1756
野的像风
野的像风 2020-12-10 07:45

i think i am not going about this quite right, being very new to jquery. i have a page with 3 recipes on it hidden. when a link to recipe A is clicked it opens in a modal.

3条回答
  •  Happy的楠姐
    2020-12-10 08:01

    change :

    var html = "Print Your Recipe
    ";

    to:

    var html = "Print Your Recipe
    ";

    and take notes on the double quotes (")

提交回复
热议问题