Questions tagged as 'javascript'

3
answers

Customizing JavaScript Confirm

Can you customize confirm() via CSS, or how to implement some modal in it? I tried using Bootstrap but the JS code stopped working: $(function() { $(".delete").click(function(){ var element = $(this); var id = element.attr...
asked by 19.04.2017 / 15:44
1
answer

Problem with tag select in form

I have developed a contact form in my site but in this form it has a select unde the person will be able to choose a service but I have no idea how to insert this into my code I would like to know if it is possible. At first my code wor...
asked by 19.04.2017 / 18:53
1
answer

Check if an email was typed in jQuery text field [duplicate]

Good afternoon! How do I check if an email was typed inside a text field? I need to identify when the user clicks off the field, if an email has been typed or just a name, for example. Thank you!     
asked by 19.04.2017 / 22:07
2
answers

how to add class in a specific input text element?

I have a page with lots of inputs. <form action=""> <div class="row"> <label for="texto">texto</label> <input type="text" class="nome"> <span class="repositorio"><span class="efeito"></span...
asked by 12.04.2017 / 19:18
1
answer

Error starting project nodejs + Sequelize + mysql

When I try to start my project, it gives the following error: D:\www\nodejs\master>node bin/www module.js:472 throw err; ^ Error: Cannot find module 'sequelize' at Function.Module._resolveFilename (module.js:470:15) at Func...
asked by 16.04.2017 / 06:23
1
answer

Close Form Dynamically jQuery

The form is a registration form for a hotel for cats. The tab has the option of adding more than one cat per record, so I clone the cat's registration form to include the second cat, but I can not get the clone form to be closed by a Close butto...
asked by 12.04.2017 / 15:35
1
answer

Script to show capital of selected state?

Well, I wanted it when I selected a certain state, to display an alert informing the capital of it. Thanks in advance. <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Exercício</title&...
asked by 12.04.2017 / 01:55
2
answers

validate form with Javascript

I'm trying to validate a <form> with JavaScript, but the code I've created is not doing anything. seems to me correct. HTML code <form name="ContactForm" action="addDataAdmin.php" method="POST" enctype="multipart/form-data"...
asked by 20.04.2017 / 20:17
2
answers

How to generate number without repetition with a pause button?

I would like to have a button with the function of PAUSE , and delete duplicate numbers. A counter below that when I press PAUSE it displays the number of the result with the TOTAL of generated lines. function append(el) {...
asked by 20.04.2017 / 11:59
2
answers

Is it possible to return 2 values in an Ajax?

I have the following script: ('#AjaxUpdateClient').submit(function(e){ var id = $(this).attr("id"); var form = $(this).serialize(); $.ajax({ type: "POST", url: "/updateClient", data: form, dataType:...
asked by 22.04.2017 / 17:41