The correct way to include jquery in a module's form I'm trying to use jquery in a form of mine that is rendered via the form api.

How i'm getting jquery to work now is like so

$form['raf_raffle_name'] = array(
    '#type' =&gt; "textfield",
    "#prefix" =&gt; "&lt;h5&gt;Raffle information&lt;/h5&gt;&lt;hr&gt;",
    "#title" =&gt; "Raffle Name:",
    "#required" =&gt; TRUE,
    "#attached" =&gt; array(
        'js' =&gt; array(
            "$path/jquery.js", "$path/test1.js"
        ),
    )
);


well it works, but i'm not sure if its the right way. Is there a better way? I'm inclined to ask after i saw the 'library' attribute which is supposed to load up certain javascript plugins.
You should not have to manually include jQuery:

"When JavaScript is added to a page through Drupal, jQuery is automatically added to the page."

-- https://www.drupal.org/node/171213