href 値を送信したい。しかし、それは機能していません。
function display () {
$.fancybox({
'href': 'index.php',
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
}
私はこれを試しました:
function display (who) {
$.fancybox({
'href': 'index.php'+who,
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
}
<a onclick="javascript:display("?id=11");" href="#" >create</a>
このonclickイベントはinnerhtml内にあるため、「スラッシュ」では機能しません
どうして