Questions tagged as 'javascript'

2
answers

indexOf is not recognized within the for

Hello, I am trying to execute this code so that it captures all the links on a page, everything works ok, the problem is that I want to find links that contain a certain word using indexOf error in log .. Uncaught TypeError: str.IndexOf is n...
asked by 13.04.2018 / 19:53
2
answers

function displaysPar () in JS

function exibePar(n1,n2){ while(n1<=n2){ if((n1%2)==0){ var par = n1 } n1++ } } console.log(exibePar(0,20)) My code is not showing all the pair...
asked by 11.04.2018 / 03:12
2
answers

How to do when to click "send" change the final text Form

I want the result of the content typed in the "Text" field to automatically exit from a predefined text within the "Post Text" field. Home Ex: when typing exemplo in the "Text" field and clicking send, the result will automatically appear...
asked by 23.06.2018 / 19:14
3
answers

Hide text between braces in javascript

How can I hide text that is enclosed in braces in my div Ex: <div> Hello {World} </div>     
asked by 25.06.2018 / 21:25
1
answer

How to increment number to a variable in JS?

I want to know how to increment a number to a variable in JS every time it goes through the while loop. For example: var num2 = 1; while(num2 < num){ new google.maps.Marker({ position: posicao(incrementar valor de num2 aqui),...
asked by 22.06.2018 / 14:12
2
answers

How to change H1 using Javascript?

I have a product gallery and the side there are some buttons which are the categories of these products (buttons: cabinet, monitors, mouse, chairs, etc.), when I click on this category, a toggle only activates the products of that specific cat...
asked by 22.06.2018 / 18:18
1
answer

Redirect to the mobile version of the site via javascript or responsive design, what is the best option? [closed]

Make a redirect via javascript to a mobile version of the site or make a responsive design?     
asked by 24.06.2018 / 01:07
1
answer

JavaScript: Prioritize value in concatenation (.concat)

I'm studying about concat and priorities The following code currently concatenates the values of the texts in the ValFin field However, I would like that if the priority of field 4 (% with% with value 1) was less than that of field 2 (%...
asked by 25.06.2018 / 16:46
1
answer

AJAX / PHP pass $ _GET and $ _POST?

Good night everyone, I have a PHP script that creates a table in which, on this page is run an ajax script and gives real time to see who is in the database ... in this table I have a delete button for each person and when clicking a variable is...
asked by 26.02.2018 / 22:21
3
answers

How to check each character in an array? JavaScript

Person, I have this code: const arrayOne = ['jean','geleia','gean','ea games', 'e1']; function buscar(){ arrayOne.forEach(function(valor){ const teste1 = document.getElementById('valorInput').value; if(teste1 ===...
asked by 25.02.2018 / 17:57