Skip to content

interface for changing formSelectors outside of the js-file #2

Open

Description

@gister

Hi there,

an interface for changing the formSelectors outside the js-file (jquery-ui.placepicker.js) would be cool.
Maybe in the initialize statement; for further compatibility of newer versions of the script this would be great.

thanks,
christoph

Activity

  1. nickspacek commented on Feb 5, 2010

    @nickspacek
    Owner

    You already can do this using the normal jQuery options passing and extending:

    $( '.placepicker' ).placepicker({
    formSelectors: {
    street: '[name=streetaddress]',
    province: '.province'
    }
    });

    Is that what you mean? Take a look at this section of the source and you'll see the options you can set.

  2. gister commented on Feb 5, 2010

    @gister
    Author

    Thanks Nick,

    exactly what I meant, but was too blind to see!

    greets,
    christoph

  3. gister commented on Feb 5, 2010

    @gister
    Author

    closed : )

  4. nickspacek commented on Feb 5, 2010

    @nickspacek
    Owner

    Thanks for reporting this stuff though! Keep it coming. This just shows that I need to document the options better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions