I have a javascript file ' cep '. where it has a method called displays (); but when I run this method in my current file that is on the page next to HTML, it does not work, why?
cep.js
$ (document).ready(function () {
function exibe()
{
alert ('Hello');
}
});
index.html
HTML
.
.
.
@section ('page-script')
<script src = "{{asset ('js/cep.js')}}"> </ script>
$ (document).ready(function () {
exibe();
});
</ script>
@endsection