JSON:\[code\]function createByJson() {var partName = [ {description:'What Part?', value:'', text:'Select Part'}, {image:'1.png', description:'Part Details', value:'1', text:'Part Name'}, {image:'2.png', description:'Part Details', value:'2', text:'Part Name'}, {image:'3.png', description:'Part Details', value:'3', text:'Part Name'},];var partSize = [ {description:'What Size?', value:'', text:'Select Size'}, {description:'Size Details', value:'1', text:'Size 1'}, {description:'Size Details', value:'2', text:'Size 2'}, {description:'Size Details', value:'3', text:'Size 3'},];var flagData = http://stackoverflow.com/questions/14385929/[ {description:'What Flag?', value:'', text:'Select Flag'}, {image:'4.png', description:'Flag Details', value:'080084', text:'Alpha'}, {image:'5.png', description:'Flag Details', value:'080085', text:'Bravo'}, {image:'6.png', description:'Flag Details', value:'080086', text:'Charlie'},];$("#byjson").msDropDown({byJson:{dataartData, name:'part'}}).data("dd");$("#byjson2").msDropDown({byJson:{data:sizeToggle, name:'size'}}).data("dd");$("#byjson3").msDropDown({byJson:{data:flagData, name:'type'}}).data("dd");\[/code\]HTML:\[code\]<head><script> function formSubmit() {document.getElementById("ddOpt").submit();}</script></head><body>!-- Begin Drop Down Menus --><div id="byjson"></div><div id="byjson2"></div><div id="byjson3"></div><!-- Submit Button --><form id="frm1" method="post" action="../cart.php"> <input type="hidden" name="frmID" value="http://stackoverflow.com/questions/14385929/XXXXXX"> <input type="hidden" name="mode" value="http://stackoverflow.com/questions/14385929/add"> <input type="image" src="http://stackoverflow.com/questions/14385929/images/buy.gif" border=0></form></body>\[/code\]Goal: When image button is pressed it dynamically fills (value="http://stackoverflow.com/questions/14385929/XXXXXX") from item ID selected in 3rd Drop down box\[code\]Example: if($('#byjson2').val() != "0"){ $('#byjson3').append($('<input>').val($(this).attr('#frmID')).html($(this).val('#flagData')));\[/code\]Demo: http://www.flagco.com/ectstore/test/testing.php