Questions tagged as 'jquery'

1
answer

Fill modal to edit with information coming from the database based on id

I need to fill a Modal in edit mode based on the id I received. My code: $("body").on('click', '#editfoto', function () { $('#modalEdit').modal('show'); id = $(this).data("idedit"); $.get("editafoto.ph...
asked by 26.11.2018 / 14:39
1
answer

Return list for ajax

I have this function to load some data, however the need to load a list and include in a table the function was this way: [HttpPost] public ActionResult CarregaProduto(string id) { try { var it...
asked by 19.11.2018 / 12:30
1
answer

How to return data from a json file in a growing way, different from the root of the objects? [closed]

I want to return data from a json file, however I want them to be printed on the page from the bottom up, ie the most recent data, which by default of the root are written from top to bottom in json, always appear at the top of the page, as a ne...
asked by 28.11.2018 / 17:18
3
answers

Give form submit with empty field validations

I have this code that does validation to a form if it has fields fields if it does not have it submit form: $("#btnAdd").click(function (e) { e.preventDefault(); var erros = 0; $("#formAdd input").each(function () { $(t...
asked by 27.11.2018 / 12:37
1
answer

Focus on a field with maskedinput

Good morning, guys ... I have a text field with recursive entries in my form. How do I after posting a typed value, clean it and leave it ready for the next entry? As soon as I type the first character of the next entry it displays the previo...
asked by 27.11.2018 / 13:57
1
answer

AJAX completes the URL from where it was called

I'm starting to use AJAX now, so I do not know if this is what's going on with it. I made this code to do a CPF search in the database $('#btn_buscar_cpf_responsavel').on('click', function(){ var cpf = $('#aluno_responsavel_cpf').val()...
asked by 14.11.2018 / 13:55
1
answer

Prevent js file from running

I would like to know how to prevent or modify a .js file from a website when it is run in my browser. The site has the following code <script type="text/javascript" src="scripts/play.html.js?_v=1.1.1"> This script play.html.js, causes...
asked by 28.02.2014 / 18:07
2
answers

Using Ajax in CakePHP 2.0

I can not use the normal Ajax syntax in CakePHP . I've seen a few things about JsHelper , but I can not do what I want. How can I call a action of controller by Ajax sending certain data and then receive the result of a...
asked by 27.02.2014 / 13:37
1
answer

How to leave textarea and button side by side?

I need to implement a textarea (message) and a button (send) on the right side, but that is liquid (100%), that is, if the window size decreases, the textarea decreases and the button retains its size 60px for example) and always pasted to the r...
asked by 27.02.2014 / 20:44
2
answers

How to create a responsive price table?

I need to create a responsive price table, but I do not know how to start. I do not know if I use list or table. Here is an example of how to stay: Does anyone have any ideas?     
asked by 29.07.2014 / 17:45