I want to get the percentage value of an ajax request from an external server. How to do?
$("#uptade_space_disk").click(function(){
var url = "/calcular-espaco-em-disco"
jQuery.ajax({
url: url,
dataType: 'script',...
Removing an element using Jquery is the simplest and most objective thing to do, first you capture the element and then remove it:
$('#elemento').remove();
I came in a situation where I need to remove the element only with pure javas...
In <input> , I have the following value:
00001545455
When I retrieve the same with Javascript , it comes without the first 4 zeros.
Can anyone help me?
I'm already passing it on to the function I'm using. The problem...
I need to draw a stream dynamically based on the user's choices. In this flow I want to draw the chosen hypotheses (blue circles with numbers) and the direction between the choices (lines with arrows). For example: node 1 for node 2.
JSFiddl...
I am creating a system in which the user must type in an input the name of the mother with only alphanumeric characters. I'm using the code below that is working, but I noticed a flaw. Even allowing not to enter other special characters, if th...
Assuming a page that has multiple events being associated via jQuery. For example, in a certain section, I have:
$().ready(function() {
foo();
});
And more ahead I have:
$().ready(function() {
bar();
});
And several more lines...
The idea is to start an animation when a given hash is found in the URL.
Example
Taking the example of a page whose navigation works by hash:
<nav>
<ul>
<li><a href="#john">John</a></li>
&l...
I have a function that does a redirect:
vm.pagarUpload = function() {
$http({
method: 'POST',
url: API.url + 'app/service.php?t=pagarUpload',
data: {
nome: vm.nomeUpload,
email: vm.emailUploa...
I have the following table that lets you edit cells directly:
The codes are in 4 parts:
MySQL table
CREATE TABLE IF NOT EXISTS 'php_interview_questions' (
'id' int(8) NOT NULL,
'question' text NOT NULL,
'answer' text NOT NULL,...