342 posts
  • Affiliate Level 4
  • Author Level 5
  • Beta Tester
  • Collector Level 3
+6 more
vtimbuc
says

Hi guys,

I’m working on a website that was build with requireJS, I’ve never worked with this framework and I need to add some inline jQuery code on the file and I can’t get it to work.

<script src="static/site/js/lib/require.js" data-main="static/site/js/ash.js"></script>

The code is being loaded this way. Then I’ve tried to add my inline code like this but none worked.

<script>
require(['jquery'], function($) {
  ...
});

define(['jquery'], function($) {
  ...
});
</script>

Does any one know how can I do it?

Thanks

by
by
by
by
by
by