Questions tagged as 'jquery'

4
answers

Remove jquery field mask

I have this code to put mask in the field: (function ($) { $(function () { $("#txtCnpjPesquisa").mask("99.999.999/9999-99"); }); })(jQuery); Now here I need to pass the cnpj($("#txtCnpjPesquisa").val()) field without...
asked by 05.05.2014 / 18:47
3
answers

Difference between $ .ajax (), $ .get () and $ .load ()?

What is the difference between $.ajax() , $.get() and $.load() ? What is the best to use and in what conditions?     
asked by 24.09.2018 / 18:36
2
answers

Infinite scrolling in one page with static data

I have the following structure and want to limit the amount of "class / posts" to display. I want to create a button so that, when clicking, it displays and goes showing more and more "class / posts". I only found tutorials that explain how to d...
asked by 28.08.2018 / 21:52
1
answer

Detect when user press ENTER

I have a jQuery code that detects when the ENTER key is pressed, but the event is also called when I use Shift + ENTER , for example. How do I detect only ENTER ? The intent is to send the form only when the ENTER key is pressed, leav...
asked by 23.11.2015 / 22:59
2
answers

remove element css

I wanted to know how I can via jquery remove all css styles from a given html element. Example: html <h1 class="titulo">Título</h1> css .titulo{ padding: 5px; color: #424255; margin-bottom: 5px; border-botto...
asked by 16.12.2015 / 13:02
1
answer

When checking checkbox, leave link visible

In my content management system, there is a checkbox on every item in the list, either to edit, delete, or view. It turns out that this button appears all the time, and if the user does not check anything, it is practically useless . I would...
asked by 12.02.2016 / 00:14
4
answers

Maximum ASP.Net MVC request size

I'm uploading Image using JQuery. I have limited the image to a maximum of 2mb, however when I send an image larger than 2mb, an exception is made saying Maximum request size exceeded. What I did: function fileUpload() {...
asked by 30.03.2016 / 22:23
3
answers

Check if the values in an array are all the same or all different

I wanted some function that would return TRUE when all values within an array were equal or all were different, and return FALSE if they were not all equal and not all different. If you have not understood, I'll explain with examples: Ex:...
asked by 29.07.2015 / 18:37
3
answers

Placing images in a div with jquery

How can I put certain images in a div using jquery with a click of a button? Follow the html: <div> <button id="btn2015" class="btn">2015</button> <button id="btn2014" class="btn">201...
asked by 22.11.2015 / 21:16
4
answers

JQuery find tree

I have the following context: <div class='pai' id='item'> <div class='form'> <div class='filho' id='item1'> <div class='filho' id='item3'> </div> </div>...
asked by 21.09.2015 / 15:09