javascript - JQuery - Item selected -
I want to get selected items in my The HTML code is: And here is my JQuery function: / div> I think that you are failing in the way you click the handler. You should do this: < / P> Keep $ .post within the function ($) braces and you'll be fine. select tag
& lt; = "Mail" for label & gt; Envoyer Mail: & lt; / Label & gt; & Lt; Select name = "mail" id = "selectmail" & gt; & Lt; Option value = "1" & gt; Case NA ° 1 & lt; / Options & gt; & Lt; Option value = "2" & gt; Case NA ° 2 & lt; / Options & gt; & Lt; Option value = "3" & gt; Case NA ° 3 & lt; / Options & gt; & Lt; / Select & gt; & Lt; Input type = "button" id = "sendmail" name = "mail" value = "envoyer" & gt; & Lt; A href = "" & gt; & Lt; / A & gt;
$ ('# sendmail'). Click ($ .post ('adressepagetraitement.php', {v: $ ('# selectmail'). Val ()}, function (data) {warning ('message invitation';})); < type error: Handle oz. handler The app is not a function. Apely (MacD.mail, AGR);
$ (elementid). Click (function () {// keep your post code here });
Comments
Post a Comment