InvalidValueError: not an instance of HTMLInputElement
问题 FYI, I'm not a JavaScript Ninja but felt like I'll become one when I did a lot of things based on Google Maps recently. I implemented a map. User can search for google places and place a marker for it. there's a text box for that. Or user can click on the map to place a marker to the place he's looking for or drag the marker. Code remains the same. Design changed. Input field's id and name also same. No change to JS code. But this thing ain't working. Here's the website Google map is