Questions tagged as 'jquery'

1
answer

Display json value in a div

How do I make a value in JS appear in html content? app.js // BUSCA OCORRENCIAS $("#menuOcorrencia").click(function() { var operacao = "selectOcorrencias"; $.getJSON("http://url.com.br/appOperacoes.php", {operacao:operacao,con...
asked by 21.12.2015 / 02:51
4
answers

Show post with ajax

I'm starting to get into jQuery only as I need on my site that a person write an opinion and it appears right below without having to refresh the page. wanted a person to enter anything in the database given that this content appears on the page...
asked by 04.02.2015 / 17:05
2
answers

How to use jQuery in MVC Architecture?

We know that MVC is a standard of software architecture (design pattern)  which makes a separation of: View (UI), Template (Business Rules), Controller that communicates between the two. Of course, MVC can be adopted as a template to...
asked by 07.04.2016 / 22:26
1
answer

Width cube with jquery

Hi I'm doing a test site and I have a promotion div with 100% width, one ul with 100% width and 4 li with the products. When it's over 4 li, I want my promo div to have overflow-x: scroll, and my ul will increase its width by 30%. I tried to do...
asked by 08.07.2016 / 01:30
1
answer

How to remove an already selected item from a multiple upload

I have this example and would like to remove an item from my selection. But it is not removing properly, has a problem with the index number, how could I solve this? link     
asked by 09.11.2015 / 22:21
3
answers

Characters "'" and "f" appear in the textbox, how to correct?

We are using MVC5, I put a field @ Html.TextBoxFor a Jquery function that does not allow the insertion of letters, however whenever the user types the characters "'" and "f", they are inserted and deleted in the act, the other characters are oka...
asked by 26.11.2015 / 20:12
2
answers

How to execute "setInterval" without initial delay?

In this code below, it updates a div every 20 seconds. Only when I enter the page I have to wait 20 seconds for it to appear. I wish he had already appeared at the beginning of the page. <div id="latestData"><img src="img/loading3.gif...
asked by 01.10.2015 / 04:46
1
answer

Jquery + Angular form does not pass an input value

I'm doing a post with Angular. It works fine when I manually type the values in the form, however it gets a value via jQuery $("#id_veiculo").val(valores02.id); and this value appears correctly, but at the time of sending the value of thi...
asked by 19.09.2015 / 22:02
1
answer

dataTables - Add and preserve CSS class to the last column of each row

To add a CSS class to the last column of each row, I use the following method: var dataTablesOptions = { 'columnDefs': [ { targets: -1, className: 'text-center' } ], // ... }; $('#minhaTabela').DataTable( dataTablesOptions ); The...
asked by 18.10.2017 / 18:32
3
answers

Use HTML5 form validation next to Jquery

I need to validate a form using the browser with the required property. Only that there is a problem, my submit button is not on the form. It has to stay out, and when I click on it I call $('form[name="meu_form"]').submit() and wh...
asked by 01.11.2015 / 19:39