Guest User

Untitled

a guest
May 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. function checkFieldAjaxBlur(field, ajaxlink, returnfield){
  2.  
  3. $(document).ready(function() {
  4. $('#'+field).blur(function(){
  5. $.post(ajaxlink,
  6. { field: $('#'+field).val() }, function(response){ //I want this first 'field:' to be a variable that is passed to function
  7. $('#'+returnfield).fadeOut();
  8. setTimeout("finishAjax('"+returnfield+"', '"+escape(response)+"')", "json");
  9. });
  10. return false;
  11. });
  12. });
  13. }
Add Comment
Please, Sign In to add comment