Questions tagged as 'jquery'

3
answers

Pass data through POST with jquery

On one page I load a list of people with a checkbox next to each. I want to move all the people I've selected to the next page. I'm trying to do this: In this code below I check who is selected and add in the nips variable. This code works pe...
asked by 24.09.2014 / 14:22
3
answers

Load dynamically from the database and mount a treeview in cshtml I'm not getting

is as follows. I'm not getting the satisfactory results in assembling a tree using checkbox like in a treeview. Well, when I put in the data it works fine. But when I bring the DB data, that's complicated, that is, it does not work. The logic is...
asked by 10.09.2014 / 19:52
2
answers

Collapse dropdown menu with JavaScript

I made the following code in JavaScript, so it would expand the dropdown, but now I do not know how I get it to pick up the menu, I wanted it when the "Focus" was not on the link, it collapsed (eg range of the menu): $(document).ready(function...
asked by 25.09.2014 / 21:16
2
answers

How to create multiple vectors dynamically with Javascript? [closed]

I get a value on the input screen, and I need to construct the number of arrays according to the number I received. Example: I get 64 in the input, so I need to create 64 arrays     
asked by 15.04.2016 / 21:20
1
answer

Effect of the menu within the table

By clicking the right mouse button on the word menu a small menu opens. How do I make it happen inside the table's row property? document.oncontextmenu = function() {return false;}; //não deixa abrir o menu ao clicar $('.menu_pai'...
asked by 12.04.2016 / 21:33
3
answers

JavaScript does not follow in algorithm flow

Example: $("#segundaFeira").change(function(){ valorSegundaFeira = calcularJornadaDeTrabalho(this.value); var x = valorFinalJornadaTrabalho(); alert(x); }); Note that the global variable valorSegundaFeira is...
asked by 05.11.2015 / 13:39
5
answers

Bootstrap: prevent the menu from closing when clicked off it

I'm using the following script so that the Bootstrap dropdown menu does not close when clicking somewhere else on the page: $(document.body).on('click', function(event){ var windowWidth = $(window).width(); if(windowWidth > 991){...
asked by 13.04.2016 / 16:47
2
answers

How to validate a zip using jQuery.validate

I'm not able to validate a zip code that the user has typed. I added the following code inside the jquery.validete.js jQuery.validator.addMethod("cep", function(value, element) { return this.optional(element) || /^[0-9]{2}.[0-9]{3}...
asked by 26.10.2015 / 18:31
2
answers

Get div above current

I have one set with several divs, <div>1</div> <div>2</div> <div>3</div> <div>4</div> I'm giving each of them, and I need to know the number (html) of the above div, for example if I'm in div...
asked by 23.01.2015 / 00:29
1
answer

PHP session is not configured

I am using session_start to create a session for the user when it is authenticated on the server, however the session is not being maintained in the page exchange, I am using AJAX requests to authenticate, then:    login.js + ajax - &g...
asked by 11.07.2014 / 02:57