我需要加载fancybox与内部的php文件,当我点击textarea。fancybox and onfocus
我的代码:
<script type="text/javascript">
$("#mypop").click(function() {
$.fancybox({
'href' : 'file.php',
'transitionIn' : 'none',
'transitionOut' : 'none',
'titleShow' : false,
'overlayColor' : '#fff',
'overlayOpacity': 0.8 }); });</script>
<textarea rows="4" cols="50" onfocus="#mypop" ></textarea>
为什么这是不工作?
谢谢我忘了在$(“#mypop”)之前添加。click(function()添加$(document).ready(function():)现在它可以工作! – andys
@ user1139767如果这个答案有帮助 - 请[*接受它!*](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) – alfasin
好的,但会是什么提交按钮?我需要在输入onclick中写入什么? – andys