Questions tagged as 'javascript'

2
answers

Effect number increasing / decreasing

I searched SOpt and did not find what I wanted Let's say I have a button and when you click it change the value of some div > or input . The starting value is 1 , and click , change to 10 . I would like this transition not...
asked by 20.08.2017 / 21:07
2
answers

What does "== $ 0" mean when inspecting a page?

When I inspected a page, I noticed that == $0 appears that is not part of HTML. What does this code mean? Are you part of JavaScript?     
asked by 27.07.2018 / 01:47
5
answers

Get content from another page by javascript or jquery

I need to get content from another page inside the site using Javascript, I tried to use ajax, however it gives this error "Cross-origin request blocked: Same Origin Policy prevents reading of the remote resource in < (Reason: CORS 'Access-Contr...
asked by 12.06.2015 / 19:57
3
answers

Transform jQuery code into JavaScript

I have a problem similar to this: Insert text - Stack But in my case I need the code in pure JavaScript and I have no idea (rookie in web prog) of how to change the jQuery they gave in response. jQuery: $('.botao_add').click(function()...
asked by 08.08.2014 / 14:34
2
answers

How to organize the codes in AngularJS?

I have several modules with AngularJS angular.module('modulo1', ['ngTable']); angular.module('modulo2', ['ngTable']); angular.module('modulo3', ['ngTable']); window.app = angular.module("app", ['ngRoute','modulo1','modulo2','modulo3']); A...
asked by 13.08.2014 / 05:07
1
answer

Crawl navigation with unique page analytics that has JavaScript navigation

I recently created a personal page and would like to track the most visited areas of the site. The problem is that the page is made up of a single file (ex: index.html) and navigation is all done in JavaScript, that is, the page loads only onc...
asked by 12.03.2014 / 14:17
2
answers

How is the 'Two way data binding' process with pure JS?

Nowadays javaScript frameworks are popular, such as React, Vue and Angular. They work with Two-Way Data Binding which is a hand in the wheel for the developer. How is this process done? Is there any simple way to do this? I would like...
asked by 10.05.2018 / 13:58
5
answers

How to add a class in a class by clicking on it, leaving only it with that class?

For example: I have more than ul with li ; If I click on a% of% of the first li it has to add a class; If I click on a ul of the second li , it adds that same class. Only which does not interfere with the...
asked by 11.02.2014 / 13:10
4
answers

Validating forms with javascript

I'm having problems validating a form with pure javascript , when it arrives in the type field "checkbox" always returns false, even with "checked = true" . Why is this happening? How can I resolve? function val(){ var inp...
asked by 20.02.2014 / 23:45
2
answers

Mixing Javascript libraries in a project

I wonder if it's not good practice to load several different Javascript libraries into one application. For example, the project has an X deadline for delivery, but should be done in AngularJS but the developer knows more about jQuery which m...
asked by 20.09.2015 / 00:12