Questions tagged as 'javascript'

2
answers

.on ('click') event, does not work in input containing date-md-icheck

Hello, in my function there is the .onClick event that should activate when checking checkbox , but when I use data-md-icheck it is ignored by the function. <input type="checkbox" data-md-icheck class="ts_checkbox"/>...
asked by 25.08.2016 / 19:25
2
answers

Add e-mail with copy in form submission

I have developed an email form but I need to add another email to receive a copy. I have no idea how to do this. Follow my code PHP: <?php if($_POST) { $to_Email = "[email protected]"; //Replace with recipient email address...
asked by 29.06.2017 / 15:52
2
answers

Variable not defined, even if defined

I made a class, which saves in a user login and password array: function AccountManager() { this.accounts = {}; } AccountManager.prototype.createAccount = (login, password) => { this.accounts[login] = password; }; module.exports =...
asked by 23.05.2017 / 18:30
4
answers

Change background of a table

I need a help, I have a web page with two tables, a table has 5 divs with images inside it, images already predefined, clicking on any of these images change the background of the other table. How can I do this using PHP, HTML, and JS....
asked by 08.08.2017 / 15:35
4
answers

jQuery delete the last entered character in an input

I would like to know how to delete only the last letter entered in an input field. All the examples I've found are cleaning the whole field.     
asked by 27.07.2017 / 18:27
2
answers

Why does not this setTimeout work?

My goal is when I click the button, 3 seconds later a div reread page ... Why does not this code work? <button id="btn-cadastra-tarefa" ng-click="adicionaTarefa()" onclick="atualiza()" type="button" data-dismiss="modal" &...
asked by 28.07.2017 / 14:44
4
answers

Capture form data and transform to UPPERCASE

I have input: <input id="id_nome" name="nome" type="text" class="form-control input-style" style="text-transform: uppercase" autofocus required> I have the following function in Jquery: $(function () { $('.form').submit(fun...
asked by 13.07.2017 / 17:14
2
answers

How to break string by replacing space by line break

I need to Break a String in the appropriate white space, so that the line break is inserted in the place of the space \n escape character in>, in order that this jump line-by-line. Here's an example Logic below:    Casa Bonita...
asked by 07.04.2016 / 15:20
4
answers

JavaScript code does not work

I'm working on a page for the web and I'd like to know why my code does not work. Simply. It should print an alert if the conditions of the if are true but this is not happening. //valida dados com javascript function verifica(objet...
asked by 05.09.2014 / 21:20
2
answers

How to know which version of the browser dynamically?

I'm doing a project in CORDOVA using basically HTML, CSS, JS. But in some cell phones the image of some icons are becoming their natural size and in others not, I have basically used vh to define the size of the images. To test this I am...
asked by 05.07.2016 / 14:32