Questions tagged as 'javascript'

2
answers

Javascript variable value assignment

I have the JS code below and the JSON return does not assign the value to the variable texto . I ran a test with alert(data.frase) and the message came normally. Does anyone know why var texto does not get the value of...
asked by 29.03.2017 / 17:32
2
answers

Identify DIV by complex id

I have several DIVs loaded dynamically via PHP like this: <div class="projeto" id="-9-3-21"></div> <div class="projeto" id="-3-1-77"></div> <div class="projeto" id="-5-33-1"></div> <div class="projeto" id...
asked by 22.03.2017 / 18:03
3
answers

How do I get values contained in a table?

I have a shopping cart where it provides the following information: <tr class="rem1"> <td class="invert">R$<span id="produto">270,00</span></td> </tr> <tr class="rem2"> <td class="invert">R...
asked by 17.03.2017 / 13:43
1
answer

How to leave a div with the same operation as a radio button?

I am developing an employee metric system, performance appraisal, I have <div> 's that have been table-shaped on my form to qualify each option as Rare , As times , frequent , always or N / A The issue is that I do not know...
asked by 10.03.2017 / 18:07
2
answers

load in css and jquery

I'm trying to make a load system to inform the user that the page is loading. I have a page in php that mounts a very large report, and it takes around 10 seconds to be displayed. As long as the page is blank. What I want is to put a...
asked by 07.03.2017 / 20:22
3
answers

Disable Input of type DATE After selecting Select option

I need to leave the field "ultimoDiaTrab" disabled and only enable it, when Select is selected "PARTIALMENTETRABALHADO" option Nº2. <div class="form-group" style=" margin: 0 auto;"> <div class="col-sm-4"> <la...
asked by 14.03.2017 / 14:03
2
answers

Uncaught TypeError: Can not read property 'split' of undefined

Hello In my JavaScript code I get the following error: "Uncaught TypeError: Can not read property 'split' of undefined". As I am new to the area, I do not understand how to solve the problem very well, can someone help me identify it? var m...
asked by 14.03.2017 / 13:14
1
answer

How to use a single jQuery function without importing the whole library?

I'm making a Firefox extension and in it I import JQuery everything. In the project I only use the getJSON(); function. I searched the net and did not find much. I researched the github repositories and found some, but I do not kno...
asked by 10.03.2017 / 04:59
1
answer

Get Object in JSON

How can I get only the "name":"josimara" property in this code ajax , I'm new to this area, thank you for the help. <script src="http://www.habbid.com.br/assets/js/jquery-1.9.1.js"type="text/javascript"></script> &l...
asked by 03.10.2017 / 20:03
2
answers

Change li background by clicking the checkbox

I have a structure like this <ul id="nomes"> <li class="classli"> <div class="Nome">Pedro</div> <div class="data">13/09/2017</div> <input class="check" type="checkbox"> </l...
asked by 09.10.2017 / 09:12