What I want is to pass the value of txtComments from View (using jquery/ajax) to Controller.
The problem is the ajax/jquery doesn\'t accept script tags as string. M
I didn't want to open another threat so ill post my problem here
Ajax wont forward value to controller, and i just cant find an error :(
-JS
--controller
public IActionResult VratiModele(int markaId = 0)
{
if (markaId != 0)
{
List listaModela = db.Modeli.Where(m => m.MarkaId == markaId).ToList();
ViewBag.ModelVozila = new SelectList(listaModela, "ModelId", "Naziv");
}
else
{
ViewBag.Greska = markaId.ToString();
}
return PartialView();
}