Form validation Javascript library to Cakephp 2.5

Well, the div with the modal content has to exist somewhere; Whether you append it to the body with jQuery or just write it into the html is up to you. Then you have to call it something like $(’#myDiv’).leanModal().

However, you would probably find more help in a JS/jQuery forum; CakePHP has very little to do with JS…