Hi,
I have a little problem. It's certainly not difficult but i don't find a solution.
I have a combobox with the list of month. Below this combobox i have a grid whiwh is reading the fetch.php
I would select a month in the combo box and send the value to fetch.php (for an example : janvier -> 1) and the grid would be refreshed with this new parameter.
i tried with :
alert() is ok but $.get doesn't work. If i wrote the $_GET['mois'] in fetch.php the result is ok.
Thanks a lot for your help
I have a little problem. It's certainly not difficult but i don't find a solution.
I have a combobox with the list of month. Below this combobox i have a grid whiwh is reading the fetch.php
I would select a month in the combo box and send the value to fetch.php (for an example : janvier -> 1) and the grid would be refreshed with this new parameter.
i tried with :
<h3>Choisissez le mois</h3> <input id="input" placeholder="Select fabric..." /> <button class="k-button" id="valid">Valider</button> <script> $(document).ready(function() { // create ComboBox from input HTML element $("#input").kendoComboBox({ dataTextField: "text", dataValueField: "value", dataSource: [ { text: "Janvier", value: "1" }, { text: "Février", value: "2" }, { text: "Mars", value: "3" }, { text: "Avril", value: "4" }, { text: "Mai", value: "5" }, { text: "Juin", value: "6" }, { text: "Juillet", value: "7" }, { text: "Août", value: "8" }, { text: "Septembre", value: "9" }, { text: "Octobre", value: "10" }, { text: "Novembre", value: "11" }, { text: "Décembre", value: "12" } ], filter: "contains", suggest: true, index: 0 }); // create ComboBox from select HTML element $("#select").kendoComboBox(); var input = $("#input").data("kendoComboBox"); $("#valid").click(function() { $.get("data/fetch.php", { mois:input.value()} ); alert(input.value()) }); }); </script>Thanks a lot for your help