You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
interface for changing formSelectors outside of the js-file #2
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.
Activity
nickspacek commentedon Feb 5, 2010
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 commentedon Feb 5, 2010
Thanks Nick,
exactly what I meant, but was too blind to see!
greets,
christoph
gister commentedon Feb 5, 2010
closed : )
nickspacek commentedon Feb 5, 2010
Thanks for reporting this stuff though! Keep it coming. This just shows that I need to document the options better.