Questions tagged as 'jquery'

1
answer

Go to a new view with JSon

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...
asked by 26.11.2017 / 23:49
3
answers

Handle accent with Jquery

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...
asked by 29.11.2017 / 14:26
1
answer

Uncaught TypeError: Can not read property 'NAME' of undefined

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...
asked by 26.10.2017 / 15:30
2
answers

Razor form field validation

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...
asked by 26.10.2017 / 14:36
3
answers

Call functions for ajax request inside callback

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...
asked by 12.11.2017 / 15:11
1
answer

Delete label text with jquery

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")....
asked by 31.08.2017 / 03:47
1
answer

How to open the modal bootstrap form after a validation error Laravel 5.4

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...
asked by 27.08.2017 / 01:23
1
answer

Get JSON value returned from Laravel

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...
asked by 29.08.2017 / 22:28
2
answers

Changing button function via jQuery

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...
asked by 30.08.2017 / 22:53
2
answers

Verify link depending on content start query

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...
asked by 05.09.2017 / 21:50