Questions tagged as 'jquery'

2
answers

How to remove mascara from the field before calling the controller with asp net MVC

In my registration form I have a CNPJ field with the mask set via jquery $("#cnpj").mask("99.999.999/9999-99"); however the value is arriving in my formatted controller, in my database this field is float, is there a way to handle this w...
asked by 04.11.2015 / 00:47
2
answers

Create a table with sorting using DataTable

I am creating a table and need to give the option to sort the table by the field of your choice. I tried to use the dataTable the data is padded correctly in the table but when I click on a header to sort, filter, or any other function of the da...
asked by 15.11.2015 / 19:54
1
answer

METABOX with dropdown state / city in Front End using Cmb2 Plugin

I have a little problem with 2% with selectors, so that's fine, because I'm using the CMB2 plugin and a METABOX selector code, and everything is ok in the Wordpress Backend, but when I bring my METABOX for the Front End it gives an error in the...
asked by 25.07.2015 / 17:07
3
answers

Get search result in google with JQuery

Hello, I'm wondering how to do the following: Using JQuery, I want to get the 1st result link from a Google search. An example: $("#bt_tempInfo").load("https://www.google.com.br/search?q=exemplo ._Rm:first-child", function(){ l...
asked by 15.07.2015 / 16:48
1
answer

How do I have two or more dynamic filters in the same Javascript product group? [closed]

The code works on the first filter but when I choose the second filter it performs a new search and ignores the first one. How do I make the filters work simultaneously. Follow the code $(document).ready(function(){ $("#filtr...
asked by 11.01.2016 / 19:42
1
answer

How to make a query to a web api, passing parameters using angularJS?

I have the current script: (function () { 'use strict'; var numeros = angular.module("myModule", []) .controller("myController", function ($scope, $http, $log) { var sucessoCalBack = function (response) {...
asked by 09.01.2016 / 04:07
1
answer

Disable button while the form is not valid to not have more than one request and duplicate saved data

I need to disable a button until all form fields are correct. Thank you in advance. $('#btnSalvar').on('click', function (e) { var button = $('#btnSalvar'); button.prop('disabled', true); var v...
asked by 08.11.2017 / 17:52
2
answers

close div when clicking outside it

I have a div with a botão inside to close it . At first it is display: none , but clicking on a button in another div , it becomes display: block . I need to find a way for when it is display: block , a...
asked by 04.11.2017 / 20:17
1
answer

How do I know how much of the content was downloaded in an Ajax request?

I need to make that little animation, like on Youtube, of the progress bar that appears at the top. How do I know how much of the content has been downloaded, to have a basis for the progress bar? I did not want to do a "static" animation,...
asked by 22.03.2017 / 10:34
1
answer

How to make collapsible divs open without the buttons of other divs going down?

I'm doing a portfolio gallery, based on Bootstrap so you're responsive. So I have a set of thumbnails that will correspond to a job that should be aligned: ClickingthemopensacollapsibleDIV.Iintendthatwhenthisdivopens,theotherthumbnailsonthesamel...
asked by 27.03.2014 / 23:32