how to display message in joomla using javascript

by kailash chandra   Last Updated April 16, 2017 09:10 AM

I want to display a message after click on a button in joomla using

Joomla.renderMessages({"success":"this is test message"});

enter image description here but it display character wise in descending order while I want to display like "this is test message" how to do this?

Related Questions

Create custom module with javascript .js

Updated November 25, 2016 08:04 AM

Joomla async and defer - Joomshaper

Updated March 10, 2017 03:10 AM