Questions tagged as 'javascript'

1
answer

Input buttons and class buttons do not work

I'm using a plugin from a modal window to make a simplified shopping cart for the client, but the buttons for selecting the pay-as-you-go or paypal as a form of payment do not work at all. If I click the button it does not redirect to any page....
asked by 04.06.2017 / 23:54
1
answer

How to calculate the speed of a user's internet connection?

I'm trying to calculate the speed of the connection in MB of a user who accesses my site. But I could not find much on the internet besides programs that are ready and sites that already do that. The only thing I was able to do was to calculate...
asked by 02.05.2017 / 15:12
2
answers

Concatenate string to all page href

I would like to know if there is any function in jQuery that can concatenate to the page's hrefs a string. My page behaves differently if my url contains #es or #pr , so I wanted to keep this comment at the end of each link. E...
asked by 02.05.2017 / 15:34
1
answer

Javascript using mobile browser does not run [closed]

I have a javascript that does formatting form fields, it works well the most on mobile does not work. Thanks for the help <script> function formatar(mascara, documento) { var i = documento.value.length;...
asked by 02.05.2017 / 16:42
1
answer

Upload DIV automatically with Ajax

I need a drug DIV to be populated the moment the user chooses one of the options in a combobox (subtype). In my index I have the combobox, where I created the Ajax script as below: $('#subtipo').change( // o subtipo está localizado nesta...
asked by 13.05.2017 / 15:10
1
answer

Problem with select multiple in form

I have developed a site where you will have a form where you will receive an email within this form exite 2 inputs select but the user will be able to select more than one option so I added the tag multiple soon he can select mor...
asked by 12.05.2017 / 19:41
1
answer

Get JSON information and insert into html with loop using getJson

Next, I have a table in an html page, example: <table> <tr> <th>nome</th> <th>e-mail</th> </tr> <tr> <td>...
asked by 13.05.2017 / 06:56
1
answer

change select values with jQuery

Well the problem I'm having is that clicking the button and changing the values of select, the effect is lost. A new select appears and I need to change only the results and maintain the style. Does anyone know what it can be? $("but...
asked by 23.05.2017 / 16:09
1
answer

ScrollLeft JavaScript

I configured the system, when the screen is smaller, format the grid, to have horizontal scroll bar, is working perfectly. But besides the scrollbar, I wanted a button or a link so that when the user clicked the grid it would move right. I tried...
asked by 24.05.2017 / 19:17
2
answers

Body NULL NodeJS

I'm starting with nodejs, but whenever I try to send (email and password) to the API via POST, the typed values are returned as NULL. router.post("/users", function(req, res){ console.log(req.body) let query = "INSERT INTO ??(?...
asked by 24.05.2017 / 16:26