LG Fresh 0 Newbie Poster
function makeSelection(icon, id) {
if(!icon || !id)
return;
var elem = icon.elements[id];
if(!elem)
return;
var val = elem.options[elem.selectedIndex].id;
opener.targetElement.value = val;
this.close();
}

this form used to select from a dropdown but i want to make it select from a click button

<td>Icon1 Here<br /><input type="button" value="Select" id="1000" onclick="makeSelection(this.form, 'icon');"></td>

here is an example of my site http://www.jamboozah.com/ its the icon feild with the [?] i have it set up with the drop down on the bottom once you fress the [?] button but i want it to use a button to select the id from the button to use in the feild in parent page

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.