how to Execute JS?

I put my jquery plugin in mod/projects/vendors/jquery.steps

in start.php i call: 

elgg_define_js('form_wizard', ['src' => '/vendors/jquery.steps/jquery.steps.min.js' ]);

i coul define my id form in the view:

$form_vars = array(
    'enctype'   =>  'multipart/form-data',
    'class'     =>  'elgg-form-alt ',
        'id'        =>  'project-form'
);

echo elgg_view_form('projects/edit', $form_vars);

ok nice!

but now i have to say:

  1. $("#project-form").steps({
  2. headerTag: "h3",
  3. bodyTag: "section",
  4. transitionEffect: "slideLeft",
  5. autoFocus: true
  6. });

 

here can i do this and how?

yes, I know , it is Beginning Developers

but I need help... :D
and will stay beautiful.

 

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking