fork download
  1. $(document).ready(function(){
  2. $("select.SubGroup").change(function(){
  3. var selectedGroupe = $(".SubGroup option:selected").val();
  4. $.post('/app/addons/ct_mailchimp/controllers/ct_mailchimp.php', {"locationID": selectedGroupe},
  5. function (selectedGroupe) {
  6. alert(selectedGroupe);
  7. });
  8. });
  9. });
  10.  
  11.  
  12.  
  13. <select class="SubGroup" id="SubGroupUniqueId">
  14. {foreach from = $ct_get_subusergroupsTest item=subgroup}
  15. <option value ="{$subgroup.name}">
  16. {$subgroup.name}
  17. </option>
  18. {/foreach}
  19. </select>
Runtime error #stdin #stdout #stderr 0.39s 321920KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
js: "prog.js", line 14: syntax error
js:     {foreach from = $ct_get_subusergroupsTest item=subgroup}
js: .................^
js: "prog.js", line 15: missing ; before statement
js:     <option value ="{$subgroup.name}">
js: .................^
js: "prog.js", line 16: syntax error
js:     {$subgroup.name}
js: ...................^
js: "prog.js", line 17: unterminated regular expression literal
js: </option>
js: ........^
js: "prog.js", line 18: unterminated regular expression literal
js: {/foreach}
js: .........^
js: "prog.js", line 19: unterminated regular expression literal
js: </select>
js: ........^
js: "prog.js", line 1: Compilation produced 6 syntax errors.