Questions tagged as 'javascript'

1
answer

How to get the url of different forms and validate via javascript

I am currently doing so and every time I submit the form the alert returns error even with the fields filled in correctly $('.form-ajax').on('submit', function(e) { e.preventDefault(); var form = $('#formnews'); $.aja...
asked by 05.10.2017 / 22:43
1
answer

Dyn div - following the scroll bar of the page

I have a div that is in the second column of the page and I wanted it to become "dynamic", that is, it followed the scrolling of the page, but even with searches, I did not get anything that could help me. Div code: <div class="...
asked by 05.10.2017 / 22:41
2
answers

Javascript for Loop - Duplicate and incomplete content

I have a UL that contains some news, within it news is within li's . In this the first tag takes the Title of the news and the link of the matter. <ul> <li> <img src="" alt=""> <a href=""> T...
asked by 05.10.2017 / 22:31
1
answer

Modal problem

I have a table of my modal and wanted the user to click both Code and Description to insert only the Code in my input , however I am trying and unsuccessful because clicking any line in the Description column is inserted all Codes in the...
asked by 06.10.2017 / 19:17
1
answer

Record Radio Button Mysql PHP

I have a system in PHP, JavaScript and MYSQL where the person assembles his request ... Link to the site It's working correctly, but I need to pass data to a report and I do not know how to do it ... Ex. Size 06x08 - Oval - Without Fr...
asked by 19.09.2017 / 05:28
2
answers

Run automatic click on form input

I have a search form, and it lists details. when accessing the details it writes session, but when returning the list it saves the search in the session but it does not execute the search. What I thought was to perform a hidden input with id=...
asked by 19.09.2017 / 17:19
1
answer

Buttons - ID - Carousel not working

I do not understand much of jQuery, but what can be happening? I would just like the arrows to work properly, do not go for style. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Teste Car...
asked by 31.08.2017 / 20:19
1
answer

Send email after the upload is complete?

I have the following function for sending emails using the nodemailer and a HapiJS server: let data = request.payload; if (data.file) { let name = data.file.hapi.filename; let caminho = __dirname + "/uploads/" + name;...
asked by 01.09.2017 / 16:35
1
answer

JavaScript Array with JSON object

I have the following objects: var category = [ {"category" : "fruity"}, {"category" : "Cakes"} ] and var products = [ {"description" : "Apple", "price" : 12.99, "category" : "Fruity"}, {"description" : "Peach", "price" : 1...
asked by 01.09.2017 / 00:38
1
answer

Rails. Uncaught ReferenceError: jQuery is not defined

I'm implementing a portion of notifications in a rails project, from a tutorial and I'm getting this error. Uncaught ReferenceError: jQuery is not defined at notifications.self-3e6330e4ab7198d8dee61da361c9c6cd1a536fd445b9ce4b6792ea023705a...
asked by 31.08.2017 / 17:46