jQuery-PlacePicker
jQuery-PlacePicker copied to clipboard
interface for changing formSelectors outside of the js-file
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
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.
Thanks Nick,
exactly what I meant, but was too blind to see!
greets, christoph
closed : )
Thanks for reporting this stuff though! Keep it coming. This just shows that I need to document the options better.