Questions tagged as 'jquery'

1
answer

In jQuery, how do I make a selection of an element using "this" within one that I am already selecting

I tried to do this: $(document).ready(function(){ $("#formulario").submit(function(){ //Esse trecho não funciona $(this "input").each(function(){}); }); });     
asked by 01.10.2017 / 22:50
2
answers

trigger function after form validation

I have a form with validation, and I need to insert after validating this form a waiting hourglass (as if you were loading the page). I would like to know how to join these two functions, and after validating the form, it triggers the other:...
asked by 27.07.2017 / 20:39
1
answer

Select md-option with ng-click

I have a page listing some job openings. Below these vacancies I have a form and in this form there is an option field to select the vacancy of interest. If the user clicks the vacancy of interest above, automatically in the form this option mus...
asked by 08.06.2017 / 19:22
1
answer

How to make a function run only in IE 10 and 11?

I want a code snippet (a specific function) to run only when the browser is IE 10 and 11, when it is Firefox or Chrome for example, I want this function to be ignored. Is this possible?     
asked by 29.07.2017 / 16:23
2
answers

Loading over the map

I have the following code drawn 2 polygons on the map. See: function initialize() { // Define the LatLng coordinates for the polygon's path. var bounds = new google.maps.LatLngBounds(); var i; var polygonCoords = [ new...
asked by 04.08.2017 / 15:18
1
answer

How to send JSON to PHP?

How do I send this object by ajax , and read in php ?    //Aquicriooobjetocomosinputsvarobj=newObject();varobjectsRadio=$('input:checked').map(function(i){obj.id_varejo=id_varejo;obj.id_pesquisa=idPesquisa;obj.id_pergunta=$(this)...
asked by 01.08.2017 / 19:55
1
answer

Pass Jquery variable to PHP

I'm with this script that brings the geolocation of the user: (function() { if(!!navigator.geolocation) { var map; var mapOptions = { }; map = new google.maps.Map(document.getElementById('google_canvas'), mapOptions);...
asked by 25.05.2017 / 12:23
4
answers

Replace special characters and capital letters

I have this code that copies everything that is typed in one input to another, I want it to copy to the other input replace special characters, spaces with "-" and lowercase . How could I do as jquery? $('.mirror').on('keyup', function() {...
asked by 29.06.2017 / 17:47
2
answers

Leave the autocomplete search in bold

I have this search script: $( function($) { $( "#p" ).autocomplete({ source: "php/search_palavras.php?id_cidade=<?php echo $id_cidade; ?>", minLength: 2, select: function( event, ui ) { //...
asked by 27.06.2017 / 15:40
1
answer

How to make CRUD buttons in datatables?

I am doing server-side activation and want to know how to make some buttons from a basic CRUD, in the last row, type like this: Mycode<scripttype="text/javascript" language="javascript" class="init"> $(document).ready(function() {...
asked by 29.06.2017 / 20:56