How to fade out and fade in paragraph in jQuery?

Oboss Chacha

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.
aceraven777

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.

edited at
0

Comments

0 comments
Login to comment

Related