Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkFieldAjaxBlur(field, ajaxlink, returnfield){
- $(document).ready(function() {
- $('#'+field).blur(function(){
- $.post(ajaxlink,
- { field: $('#'+field).val() }, function(response){ //I want this first 'field:' to be a variable that is passed to function
- $('#'+returnfield).fadeOut();
- setTimeout("finishAjax('"+returnfield+"', '"+escape(response)+"')", "json");
- });
- return false;
- });
- });
- }
Add Comment
Please, Sign In to add comment