Colorbox html from a function
i have a html code
<html>
<body>
<div id="bag">CLICK ME</div>
</body>
</html>
<script type="text/javascript">
$("#bag").click(function{
$.colorbox({html:function(){alert("HELLO")}});
});
</script>
When i click on CLICK ME, alert pop up comes 2 times rather it should come
only once. Please tell me
No comments:
Post a Comment