Questions tagged as 'ajax'

1
answer

Pass two sets of values from AJAX to controller

I need to pass the values of a view model, and a table, the table is passing normally, when passed alone, the viewmodel does not. Here's how I'm doing: var model1 = objectifyForm(model); console.log(model1); debugger; $.ajax({...
asked by 27.08.2018 / 21:52
1
answer

How to make a column with always fixed data in a DataTable? MVC JS

Hello. I have a DataTable that is returning BD values, however I need only one column to always have fixed values that will not come from the DB (in this case, it is a column with the months of the year). However, I can not change the structure...
asked by 31.07.2018 / 17:51
1
answer

Select2 + Jquery - Problem with Autocomplete

I was able to make Plugin Select2 work, but autocomplete does not work. $(function () { $("#disciplina").select2({ placeholder: "Disciplina", minimumInputLength: 0, ajax:{ url: "busca.asp",...
asked by 23.07.2018 / 22:18
2
answers

Change value select via ajax as another select with static data

I have this select, where the user should select it: <select asp-for="Configuracao.TipoEquipamento" class="form-control"> <option value="0">Catraca</option> <option value="1">Fechadura</option> </select>...
asked by 10.07.2018 / 13:11
1
answer

Multiple bootstrap modal calls

Good morning. When you click a button, this button calls a modal, whose call happens twice, and I can not understand why this call is coming twice as you can see in the following image. Callingthemodel<p><ahref="#" id="btnDistrib...
asked by 17.08.2018 / 17:53
1
answer

Enable jQuery Validate (plugin) with ajax response

I've always found this plugin interesting because it leaves the form simple with subtle messages to the visitor. I decided to implement and fall into the following dilemma: How do I make the return of my AJAX activate some warning on my form?...
asked by 07.08.2018 / 20:26
1
answer

Upload select via ajax

I'm trying to load a select via ajax, here's how I'm doing: HTML: <select id="cbplanos" class="form-control"></select> Controller code: public async Task<IActionResult> Load() { var lista = _context....
asked by 29.06.2018 / 14:22
1
answer

Load input text after selecting select

I have a select that is being populated via ajax, when I open the modal, I call the function that loads the select, and it is working perfectly. But I need a cascade type effect in the first field, and when changing, it changes the input text...
asked by 29.06.2018 / 14:53
1
answer

Function does not recognize hidden elements

I have a function, it works perfectly, but I need to hide the fields, which do not need to appear for the client, but when hidden, the function does not receive the values, <div class="col-md-4" id="fim"> <label id="lblFim" clas...
asked by 04.07.2018 / 16:45
1
answer

Message with Delay in JQuery

I have the following code: if(oper == 1) { $("#op" + iddoc).html("<input type='button' onClick='AddExcDocCPS(\"" + idcontrato + "\", \"" + iddoc + "\", 0)' value='Excluir' class='BT_Vermelho'>"); //alert("Documento Incluído com Suces...
asked by 12.06.2018 / 19:57