H
H
Habitat Horsewithyou2017-10-07 21:10:55
JavaScript
Habitat Horsewithyou, 2017-10-07 21:10:55

How to collect all value in one css (class) and send them ajax to php file?

How to collect all value in one css (class) and send them ajax to php file?

function createschemefull() {
    var class= ($(".class").val()?????????????;
    $.ajax({
        type: 'post',
        url: 'func/class.php',
        data: {
            "class": class,
        },
        success: function(response) {
            console.log(response)
        }
    });
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
testkeyc, 2019-07-02
@testkeyc

for (let n = 1000, num = 0; n > 50; num++) {

n /= 2;
    alert( n );
}

A
Andrey Suha, 2019-07-02
@andreysuha

Increment n is superfluous, you add 1 every time in addition to division

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question