I have a dropdown menu with several months values. This is an example of one of them.
<li data-toggle="modal" data-id="January" class="random " href="#AddMonth">January</li>
I would like to pass the "January" value to a php variable. Something like this
<div class="modal fade" id="AddMonth" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Update your information</h4>
</div>
<div class="modal-body">
<?php
// $month = ? // month will contain the variable that was pass from data-id
MethodSendMonthData($month);
?>
</div>
</div>
I am not sure how could I achieve this?