Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #8410

jquery $.post 2 values

From "Jesolo Sun" <gala@tiscali.it>
Newsgroups comp.lang.javascript
Subject jquery $.post 2 values
Date 2011-11-18 22:12 +0100
Message-ID <4ec6ca33$0$1385$4fafbaef@reader2.news.tin.it> (permalink)
Organization TIN.IT (http://www.tin.it)

Show all headers | View raw


$("select#stampa").change(function(){
     var stampa = $("select#stampa option:selected").attr('value');
     var quantita = $("input#quantita").attr('value');
     $.post("select.php", {PrinttypeID:stampa}, function(data){
     });
});


I need to sent in the file  select.php 2 values PrinttypeID:stampa and 
Quantita:quantita

I get values
var stampa = $("select#stampa option:selected").attr('value');
var quantita = $("input#quantita").attr('value');

how send  this 2 values?

Back to comp.lang.javascript | Previous | NextNext in thread | Find similar | Unroll thread


Thread

jquery $.post 2 values "Jesolo Sun" <gala@tiscali.it> - 2011-11-18 22:12 +0100
  Re: jquery $.post 2 values Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-18 22:56 +0000
  Re: jquery $.post 2 values "S.T." <anon@anon.com> - 2011-11-18 16:15 -0800
    Re: jquery $.post 2 values "Jesolo Sun" <gala@tiscali.it> - 2011-11-19 08:29 +0100

csiph-web