Questions tagged as 'javascript'

2
answers

problems submitting form

I have developed a form in this site in php and javascript la has a multiple select where the user will be able to select more than a value when I send my form it arrives with all the information but where it exists select multiple it does not...
asked by 31.05.2017 / 14:38
2
answers

API works on POSTMAN, but not on code

I am trying to access an API, by postman, it works and returns the json normally, since the code (using VueJS + Axios) does not return, from the CROSS error, how can this? and does the axios return normally? let headers = { 'Authorizat...
asked by 05.06.2017 / 15:20
3
answers

Doubt about standardized code JS

Hello, I wanted to understand why this javascript code follows this standardization, I got a project and I realized that all js files follow this pattern var projeto = { methods: { funcao1: function() { }, funcao2:...
asked by 06.04.2018 / 16:19
2
answers

'input' event only occurring when loading page

Hello, folks at StackOverflow. I try to make a textarea of a web page that I'm developing check continuously if the typed text is equal to or different from a predefined phrase, according to the javascript code and jquery below: var atualiz...
asked by 19.05.2017 / 17:58
2
answers

Help with innerHTML in Javascript

I'm trying to add a variable that contains an html element in my html file, I'm trying to use innerHTML + = myvar, the problem is, I have two elements to add, an iframe, and a paragraph when I add iframe goes but the paragraph does not add. fu...
asked by 12.05.2017 / 21:23
2
answers

Defining the color of a div in rgb

I'm doing a div, where clicking it turns orange, and clicking again, it goes back to white. But I have two questions: When comparing the color with rgb in part if(document.getElementById('homem').style.backgroundColor == 'rgb(#FF6600)...
asked by 16.10.2017 / 14:08
2
answers

Problem using append js element does not appear

I have a problem with my problem with my append no js I needed to replace one image with another when I click on a div ai when I click the image set via ID some normal but what should appear in the place does not appear I ne...
asked by 10.10.2017 / 16:26
1
answer

How to apply this scroll function? [closed]

I'd like to apply an effect that worked the following way, a search on the form that when it was displayed the result on the page should automatically scroll in place of the div where the search result will be. Please note: Can anyone show me...
asked by 16.10.2017 / 18:04
1
answer

update input with jQuery

In each row of the table I have an input, I need to change the value of the input with the value of the line position. How can I do this? $(document).ready(function () { $('tbody').sortable({ axis: 'y', c...
asked by 08.05.2017 / 18:59
2
answers

Use property of an object when declaring it in javascript

Personal I'm starting in javascript and I have many questions related to objects. One of them is this: Let's suppose I create an object. Here I have a list and I want to store it inside an object and a function of this object is used to chang...
asked by 11.05.2017 / 15:51