Hey, I’m new to javascript, and I need some quick help on how to do something.
I have a form, and one of the text boxes should be a URL to an image. I have a link to popup an image-upload script. On that popup, after they upload the file, they’ll have a URL. I don’t want to give specific instructions to “Copy paste the URL into the form”. I want it so that they’ll click a button called “Insert into Form” and it’ll automatically close the popup and insert the URL into the text box.
Hello. I used the code you provided and it worked great. However, I’m trying to make the popup display data dynamically. I’ve provided my code below, which correctly displays my images/buttons dynamically. But when I click on any button to insert the text into the parent field, all buttons default to the first name in the popup. I would like each button to insert the text of the corresponding image name. Any help would be greatly appreciated. Thanks in advance.