We can get rid of the flash message shown on a webpage in cakephp using setFlash method without refreshing the page by the help of simple Jquery function.
flashMessage is the default html id used by the cakephp while showing flash message.
//Getting rid of flashmessage
$(document).ready(function(){
$('#flashMessage').delay('5000').hide('slow');
});
0 Comment(s)