Advertisement
uabassguy

js

Sep 9th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. function fetch_category(element,taxtype) {
  2. var term_id = element.val();
  3. var args = {
  4. type: "POST",
  5. dataType: 'json',
  6. url: "/fetchboard/tax_ajax.php",
  7. data: {
  8. id: term_id,
  9. tx: taxtype
  10. }
  11. };
  12. jQuery.ajax(args).success(function(response){
  13. alert(JSON.stringify(response))
  14. });
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement