Questions tagged as 'javascript'

1
answer

Get data-value value that is generated dynamically

I need to get the value of a data-attr that is generated from an ajax request. The maximum I got was: $('.dataImposto').on('click', '.ImpostodeRenda', function(){ $(".ImpostodeRenda").html("ooi"); }); The problem is that this "TaxTim...
asked by 19.10.2017 / 21:19
1
answer

Http Get Request with Axios

I need help to make a get for my restAPI by passing parameter (I do not know if that's the way it's called, if I can speak the way I say it, I appreciate it!) . What I do is call a list in link axios.get(' http://localhost:...
asked by 19.10.2017 / 21:08
5
answers

How to get the last position of an ID in the array

Hello, I have a function that captures coordinates of elements that I move on the screen with the mouse. But this function of mine takes the trace of the coordinates of the elements that I drag, I would like to take only the last coordinate of e...
asked by 16.01.2018 / 12:43
2
answers

String Comparison in jQuery

I'm having a question in comparing string using Javascript / jQuery. I want the city in input id="cidade" not to be Goiânia or Aparecida de Goiânia to display the alert . But even when the city is Goiânia...
asked by 29.11.2017 / 20:40
2
answers

Assign link to a modal bootstrap window

How do I get the link from a modal window? In case I want to send this link, the user clicking the link already open the modal. How do I do this?     
asked by 29.11.2017 / 20:57
1
answer

How to use a website on the server [closed]

So I created a system in php that saves the numbers among other things from company employees, I use xampp on my computer, I was wondering how do I put the system in php on the server and make it get open on company computers ...     
asked by 27.11.2017 / 16:03
2
answers

Submit form when changing checkbox

Where am I going wrong on my form? When changing checkbox it needs to submit the form HTML <form id="form_onoff" name="form_onoff" action="onoff.php" method="post"> <input type="checkbox" value="on" id="slideThree" name="slideThree...
asked by 30.11.2017 / 17:19
1
answer

forEach in javascript for a return in json with error for a single record

I have a really annoying problem and I do not know why. Through an ajax request, I get the server notifications that the user has not yet viewed (similar to facebook) For this, I use the following code: $.ajax({ url: BASE_URL+"ajax/...
asked by 01.02.2018 / 21:43
2
answers

Get Radio and Text Values in Order

Good note. I have a problem in the logic of how to proceed between a set of questions and answers. I have the code below consisting of inputs with the types text and radio. I want to retrieve the information of these elements in the order the...
asked by 02.02.2018 / 01:00
1
answer

Delete result with JS and PHP

I have a script in js to delete sql results with PHP and JS ... LINK <a href="javascript:;" onClick="deletar(<?php echo $exibe['matricula']; ?>);"> JS function deletar(matricula) { if (confirm("Tem certeza que deseja ap...
asked by 15.12.2017 / 17:29