I have laravel layout
<html> //layout.blade.php
<head>
<script src="/js/jquery.js"></script>
<script src="/js/jquery-ui.js"></script>
</head>
<body>
@yield("content")
</body>
</html>
And my view
@extends("layout")
@section("content")
<ul class="test">
<li>1</li>
<li>2</li>
</ul>
<script>
$(function() {
$(".test").selectable();
});
</script>
@endsection
My browser console always show me $(...).selectable is not a function
But if i make same without layout or without anonymous function this works