Questions tagged as 'jquery'

2
answers

.empty () in javascript, how to do it?

I'm using a preview script for images created with jquery, however I want to accomplish it in Javascript Vanilla, I'm looking for a way to override the variableQualquer.empty (); but I did not find, how can I replace this command? JQuery code...
asked by 04.05.2017 / 22:21
3
answers

Jquery: calculate number of ballots of the service value (deliver as few numbers as possible)

I am solving an exercise that I am having doubts, it is referring to a bank system, in which when presenting the value of draw, I must receive the smallest number of possible notes for the indicated value, I must also use the recursive method. H...
asked by 25.06.2017 / 00:12
3
answers

Get code from a li

I need to get the <li> complete of all checkbox checked. My code that is dynamically mounted is below: HTMLNovo = ' <li class="item item-checkbox widget uib_w_69" data-uib="ionic/checkbox" data-ver="0">...
asked by 19.11.2015 / 11:52
2
answers

How to identify if the user is at the top of the page?

Upon entering the site the page will be displayed from the top (by default) , how to do to identify if the page is at the top using JavaScript pure and > jQuery ? Examples: If the page is at the top, hide the <div id="um-id"...
asked by 18.08.2018 / 00:58
4
answers

How to close a dropdown if the user clicks another place on the page?

What is the best method to hide a div , which is fulfilling the role of dropdown , when the user clicks another place on the page? At first, I value cross-browser solutions and without frameworks , but any extra application con...
asked by 23.12.2013 / 21:38
5
answers

How to run an event once?

How do I get an event fired one time? <div> <span class="oi"> OI </span> </div> $('.oi').mouseenter(function(){ alert('OLÁ'); }); This is just a simple example.     
asked by 01.03.2016 / 18:00
3
answers

Write checkbox value in input

I'd like to be registering the selected days of the week directly in the insert, but I'd like to be passing those values as a "phrase" to the hidden field. What's the way to do this in jquery? EX: I checked the Tuesday and Friday checkbox so the...
asked by 07.04.2015 / 20:26
5
answers

change the title of a Window confirm ()

I would like to know if I could somehow change the title of a window confirm() because I'm developing an app using phonegap and when I call this window it presents me the title with the name of my html file, can I modify this? if so how...
asked by 17.12.2015 / 18:00
5
answers

Using jQuery Validation Engine and CPF validation

I'm using the jQuery Validation Engine with translations file for Portuguese. I have added the following line to the JavaScript: "cpf": { "regex": /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/, "alertText": "* CPF inválido" }    Class="va...
asked by 16.12.2014 / 01:38
2
answers

Format number for only 2 digits

I have a script that returns: 4.499999999999999 But I wanted it to return only 4.4 or round to 4.5, so I do not want it to be more than 1 digit after the comma, how to do it?     
asked by 19.03.2015 / 22:41