Problem with .ajax with 1.4.2
Hello i have something like that
main.php
<script>mian.js</script>
-------------------
mian.js
$.ajax({
type: "POST",
url: "file.php",
data: "id_field="+ usr,
dataType: "json",
success: function(data){
$("#other1").val(data.o1);
$("#other2").val(data.o2);
}
});
-------------------
file.php
.......... php,mysql .......
echo "{o1:'".$data_from_mysql1."',o2:'".$data_from_mysql2."'}";
-------------------
and its WORKS, ajax fill the input field in main.php
but jquery 1.4.2 not fill the input field.
How to fix it ?