SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2008
    Posts
    455
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom jQuery functions

    Hi,

    How do you create custom jQuery functions?
    I've tried numerous tutorials on the net and everyone results in firebug saying my function doesn't exist.

    Is this the correct way to define a custom jQuery function:

    Code:
    jQuery.fn.multifields = function()
    {
    ...
    return $();
    }
    Cheers,
    Michael

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Should work.

    $().multifields();


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •