JS/JQuery Dynamic Widget
Dynamic widget that builds a URL based on user input from two select fields and then writes an array of itself with clickable links built at runtime that opens content in a lightwindow.
Select and configure the products (Boxes) the merchant may use below.
// This dynamically builds our links within the newProf div for each option selected. $('#select2 option').map(function () { return $('[a\]', {class: $(this).val(), id: 'enableProfiles' + $(this).val(), href: './includes/profile' + $(this).text() + '.php', text: $(this).text()}).get(); // or this.value / $(this).val() }).appendTo('#newProf'); $("#select2").val();