Jump to content
php.lv forumi

jquery negrib saskaitīt


yeahz

Recommended Posts

nekad neesmu neko tādu redzējis, kāpēc kad saskaita var pager sanāk nevis 3, bet gan 111?

 

"$("#pager").val()" izvada "1"

 

function NewQueryNext() {
   var type = $("#type").val();
   var country = $("#country").val();
   var pager = $("#pager").val() + 1 + 1;
   $.ajax({
       method: "get",
       url: "/ajax/load-new-query.php",
       data: "type="+type+"&country="+country+"&pager="+pager,
       beforeSend: function(){$("#loading-new-query").css('display', 'block');},
       complete: function(){ $("#loading").css('display', 'none');},
       success: function(html){
           $('#pictures').html(html);
       }
   });
}

vienmēr esmu šitā skaitījis un viss ir bijis labi.

Edited by yeahz
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...