I want paragraph to fade out,I tried many time I've failed in jQuery.
@extends('layouts.master')
@section('content')
<p class="alert-success">Succefull</p>
@endsection
@section('script')
<script type="text/javascript">
$(document).ready(function(){
$('.alert-succes').delay(1000).fadeOut('fast');
</script>
@stop
//document.write() work correctly I don't where is problem.
Seems that you have a typo in your javascript, its alert-success
NOT alert-succes
. It should be
$('.alert-success').delay(1000).fadeOut('fast');
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments