Advertisement
DrupalCustom

jscript

Dec 12th, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function populateTargetlangs() {
  2.   $("#edit-folks-list").change(function() {
  3.     var targetLangIndex = $(this).find(":selected").text();
  4.     var chunks = targetLangIndex.split("_");
  5.     var idChunk = chunks[1];    
  6.     alert("hello worlds "+ idChunk);
  7.     $.post('webDelegate.php',{name:idChunk},
  8.         function (output){
  9.         $("#edit-targetLang-list").html(output).show();
  10.         });
  11.    
  12.    
  13.    
  14.   });
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement