I want to open a fancy box, But it give a Type error, can you please help me to solve this problem
view page contain following code
<script type="text/java script">
$(document).ready(function() {
$('.fancybox').fancybox();
});
</script>
HTML code
<a class="fancybox" href="#inline1" title="Add New Vessel">
<div class="right-head-buton" style="color:#fff">Add New Vessel</div>
</a>
I want to open inline id div in fancy box
<div id="inline1" style="width:800px;display: none;">
<div class="lightbox">
<?php echo $this->action('add', 'agency', NULL); ?>
</div>
</div>
In Bootstrap I include two files
$view->headScript()->appendFile($view->baseUrl('/public/js/jquery-1.10.1.min.js'));
$view->headScript()->appendFile($view->baseUrl('/public/js/jquery.fancybox.js?v=2.1.5'));