I have this code:
var sizes = ["1/9","1/8","1/7","1/6","1/5","1/4","1/3","1/2","1/1","2/1","3/1","4/1","5/1","6/1","7/1","8/1","9/1"]; var slider = new dijit.form.HorizontalSlider({ value:8, name:"value"+[i], slideDuration:0, onChange:function(val){ dojo.byId('value'+[i]).value = sizes[val]; }, minimum:0, maximum:sizes.length-1, discreteValues:sizes.length, intermediateChanges:"true", },node);
now that i have done:
$("#custom").submit(function() { var formdata = $("#custom").serializeArray(); $.ajax({ url: "insert.php", type: "post", dataType: "json", data: formdata, success: function(data) { } });
For example, if I select the value 1/8, it is sent as 1 or 9/1 as 16.
I want to send the fraction value, which is displayed in the input field, but, as I said, is not sent to the insert.php file
Any idea? thanks