I have this script
in my view
$(document).ready(function () {
$("#PlanVenta").change(function () {
$("#Precio").empty();
$.ajax({
type: 'POST',
url:'@Url.Action("PreciosPorTipoVenta")',
datatype:'json',
data:{Id_Plan:$("#PlanVenta").val(),Id_Articulo:$("#Id_Articulo").val()},
success:function(precios){
$("#Precio").val(?????);
},
});
});
});
public JsonResult PreciosPorTipoVenta(int Id_Plan, int Id_Articulo)
{
return Json(querty, JsonRequestBehavior.AllowGet);
}
and I have this input to which I want to assign the value that the controller returns to me from ajax
<input type="text" id="Precio" name="Precio" />
what should I put there because I already try to put precios.Value
as I had seen in an example but nothing comes out