Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gister opened this issue Feb 5, 2010 · 4 comments
Open

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

gister opened this issue Feb 5, 2010 · 4 comments
Labels

Comments

@gister
Copy link

gister commented Feb 5, 2010

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

@nickspacek
Copy link
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.

@gister
Copy link
Author

gister commented Feb 5, 2010

Thanks Nick,

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

greets,
christoph

@gister
Copy link
Author

gister commented Feb 5, 2010

closed : )

@nickspacek
Copy link
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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants