I am doing a delete with Ajax and returning a JSon. How do I open a different view?
Here is the code, I put the url but it does not work:
View
$.ajax({
url: '@Url.Action("ExcluirPedidoCompra")', // to get the right path to controller...
I'm having trouble handling accentuation in jQuery.
I would like to remove accents from words and replace spaces with "% 20".
I tried to do it the way it did, though, it did not work.
cidade_sem_tratar = $('#estados').val();
console.log(cid...
I have a problem that is killing me ...
I'm trying to get the API to be able to get the API data in the table, and it will give the error: Uncaught TypeError: Can not read property 'NAME' of undefined.
And this "NAME" is an array that has in the...
I'm using MVC5 Razor to create my forms,
now I have a question for the validations of the fields
of this form;
Example:
@Html.LabelFor(m => m.Nome, "Nome:")
@Html.DropDownListFor(m => m.Nome, "Nenhum" , new { @class = "form-d...
Within a function callback() of a click need to make at least 3 requests.
I separated this into three functions: (func1(), func2() e func3()) and each of them makes a request ajax ($.get) returning me true or fa...
I need to delete the text contained within the label tag ("Justification") with jquery, follow the code:
function add_text() {
if ($("#tipo").val() == "Falta") {
$(".b").remove();
$("#just").remove();
$("#justificativa")....
I have a modal bootstrap contact form. I have the validations where they are validating correctly. Now my question is:
How do I when not to pass the validation it return the message in modal with it open.
When it validates and does not pass vali...
I have the following JSON returned from a controller Laravel :
{
"id": 105,
"tratamento_id": "24",
"eim": null,
"oft": "12",
"codigo_produto": "CO009-1200-1200",
"descricao_produto": "COMPENSADO 9X1200X1200 ",
"t...
I have some buttons that in the click of the same directs an ajax request to an external file that adds a product, however this does not matter much in this case. I manipulate these buttons, and every time the button with span buy, where...
I need to load a "fake loader" when a menu link is triggered, but in this menu some links are empty <a href="javascript:;"> or <a href="#"> , I need to only identify these via javascript and not open the loader. >
I ca...