Answer the question
In order to leave comments, you need to log in
How to get the value of such a form in js or mootools to pass it on to PHP?
Here is its HTML:
<select name="birthdate[day]" id="birthdate-day" class="date_class">
<option value="0"> </option>
.....
</select>
<select name="birthdate[month]" id="birthdate-month" class="date_class">
<option value="0"></option>
..........
</select>
<select name="birthdate[year]" id="birthdate-year" class="date_class">
<option value="0"> </option>
<option value="2015">2015</option>
....
</select>
var birthdate = $contactForm.getElement('select[name="birthdate"]').getProperty('value');
Answer the question
In order to leave comments, you need to log in
maybe so
var birthday = {
'day':document.getElementById('birthdate-day').value,
'month':document.getElementById('birthdate-month').value,
'year':document.getElementById('birthdate-year').value
};
//ну и как то так использовать там alert- просто для примера
alert(birthday['day']);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question