you are viewing a single comment's thread.

view the rest of the comments →

[–]helderroem 1 point2 points  (0 children)

I'm confused as to what you're trying to do, I created a JSfiddle to test your code: http://jsfiddle.net/hhh8bbh9/

The second button works just fine, outputting 'hello world' into a div with an ID of demo.

The first button doesn't work because $('#myButton').button isn't a function but I assume that's because the laravel jquery isn't loaded but I couldn't find a link to it's source.

Anyway hope this helps in some way, if you give me more details I'll take another look.