jQuery-PlacePicker icon indicating copy to clipboard operation
jQuery-PlacePicker copied to clipboard

interface for changing formSelectors outside of the js-file

Open gister opened this issue 15 years ago • 4 comments

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

gister avatar Feb 05 '10 13:02 gister

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.

nickspacek avatar Feb 05 '10 14:02 nickspacek

Thanks Nick,

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

greets, christoph

gister avatar Feb 05 '10 14:02 gister

closed : )

gister avatar Feb 05 '10 14:02 gister

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

nickspacek avatar Feb 05 '10 14:02 nickspacek