Questions tagged as 'jquery'

1
answer

Get the name and date value (using datepicker), and then calculate using only (JQUERY),

$(function () { $("#datepicker").datepicker({ }); }); <body> <form id="formu"> Nome:...
asked by 30.06.2016 / 16:36
1
answer

How to configure Require.JS

Hello people, I'm in doubt to set up RequireJS correctly, but I also have doubts about organizing Trees to set baseUrl and so I'll demonstrate how I'm setting up: . ├── index.html ├── js │ ├── boot.js │ ├── main.js │ ├──...
asked by 06.07.2016 / 04:56
1
answer

Is there any possibility of performing a javascript action after the end of a download?

I have a link to a PDF on my site. I would like the page to enable another button at the end of your download. But the question is: is it possible only with javascript / jquery? If yes, how would it work?     
asked by 18.08.2015 / 18:43
1
answer

A constant eventListener, or almost this

I've always been in doubt as to this, as I remember doing my ajax test, and every time I updated it, I lost the event logged. Example: A list of names <script> $(document).ready(function(){ $(".clickLi").click(function(){...
asked by 24.02.2015 / 21:06
1
answer

Call JS function within modal

I have an event where a modal is displayed, in it I want to call a function validateEmail but I can not. validateEmail: function(email) { var re = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@((\[[0...
asked by 23.02.2015 / 18:24
1
answer

Change part of the text of a label

I have the following label created by a plugin <label> Buscar: <input type="search" class="form-control input-sm" placeholder="" aria-controls="Pedidos"> </label> What I want to do is just change the "Search" for something...
asked by 06.03.2015 / 14:55
1
answer

How to add a class to multiple cached elements at once?

In jQuery, we can add CSS classes to multiple elements, but with the element already cached in a variable, how can we perform the same operation? Example: // adicionar classe a ambos os elementos $('#myEle, #anotherEle').addClass('johnDoe')...
asked by 16.12.2013 / 17:24
2
answers

jqGrid does not call the blockUI method without using window.setTimeOut when the ajax request fails

I'm using jqGrid 4.54 in my project and I want to put a message blocking the whole screen with the blockUI in> when my AJAX request encounters an error on the server as error 500. I know that 2.66.0 does not work with synchronous A...
asked by 29.01.2014 / 14:02
3
answers

Reload after update

I am making a status change in my database using $.getJSON , it works, but in return I need to update the div where the data is and I am not able to perform this task, see the code below: / p> <script> $(function(){...
asked by 03.02.2014 / 19:02
1
answer

Add "thead" to a table created with createElement

I have the following code, which creates a table, using createElement() : var context = document.createElement('table'); var row; context.className = 'table'; row = context.insertRow(); row.insertCell().innerHTML = 'foo'; row.insertCell...
asked by 18.01.2014 / 21:19