Hello,
I wonder why I cannot hide pages with Jquery?
home.blade.php
<li> <input id="c10" type="checkbox"> <label for="c10"> <!-- <a href="#" @click.prevent="togglePage()"> --> <a href="{{ action('HomeController@getArticles') }}" id="hide">
@if($uri=="home/articles")
<!-- <img src="{{url("")}}/images/button-10-hover.png"/> --> <div id="circle1"><div style="margin: -10px 0 0 0;"><img src="{{url("")}}/images/add/icons5-hover.png" width="30px" /></div></div>
@else
<!-- <img src="{{url("")}}/images/button-10.png"/> --> <div id="circle1"><div style="margin: -10px 0 0 0;"><img src="{{url("")}}/images/add/icons5.png" width="30px" /></div></div>
@endif
</a> </label>
...
<script>
$( "#hide" ).click(function() {
$( "#container" ).hide( "slow", function() {
alert( "Animation complete." );
});
});
</script>
pages.blade.php
@extends('home')
@section('title', 'Home')
@section('content')
<section v-show="visiblePage" id="container"> <menu></menu> <cont> <center><b>{{ $pages2->pages_title }}</b></center><br>
{!! $pages2->pages_content !!}
</cont> <sidenav> <label for="c500" onclick="alert(1)">Label</label> <a href="#" @click.prevent="togglePage()">Test</a>
@foreach( $pages as $p)
<a href="{{url('')}}/home/pages/{{ $p->id }}">{{ $p->pages_name }}</a><br><br>
@endforeach
</sidenav> </section>