Forum

ajaxForm/ajaxSubmit...
 
Notifications
Clear all

ajaxForm/ajaxSubmit - how to add extra param on the fly?

   RSS

0
Topic starter

dynamic data

1 Answer
0
Topic starter

example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
    // pre-submit callback
    function showRequest(formData, jqForm, options) {
        var obj = {
            name: "roles",
            required: false,
            type: "text",
            value: "admin,user, whateveeeeer"
        };
 
        formData.push(obj);
        var queryString = $.param(formData);
 
        return true;
    }
    // pre-submit callback
    function showRequest(formData, jqForm, options) {
        var obj = {
            name: "roles",
            required: false,
            type: "text",
            value: "admin,user, whateveeeeer"
        };

        formData.push(obj);
        var queryString = $.param(formData);

        return true;
    }

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: