Questions tagged as 'jquery'

2
answers

Pause count - setInterval

I'm creating a function to start a count and when it reaches the final value it stops. But clearInterval is not working: '( Has anyone ever had to do something similar? function numerosHome(){ var inicial = 0; var lo...
asked by 22.12.2017 / 13:13
1
answer

Hide content and change size of other

What I intend and the following is that when hiding the div from id="content1" the other div increases to col-lg-12 what I have is the following code: <div class="row"> <div class="col-lg-6" id="content"> &...
asked by 31.10.2017 / 23:59
2
answers

Parameter passing, ele.on ('click', func);

How do I get parameters passed as follows? function hello(msg) { alert(msg); } $('ele').on('click', hello); How can I pass the msg to the hello(); function The alternative with native javascript is also welcome.     
asked by 17.08.2017 / 16:34
1
answer

Put multiplication result in another input and add the totals

My goal is to display the sum of the Inputs in the Total Column in the "Total Order" input, where the Addition must also be added (it will be passed in decimal form (%)) and the discount value (will be passed in decimal form (%)). I tried to...
asked by 15.08.2017 / 09:37
1
answer

Is it possible to generate excel / csv or pdf from certain columns of a DataTables table?

I have a Table: <table class="tabelaRelatorioPausas table table-condensed table-striped table-hover table-responsive " cellspacing="0" width="100%" > <thead>...
asked by 14.08.2017 / 22:03
1
answer

JS Countdown not working on safari

I'm developing a website with a countdown. The code works fine and the timer starts counting perfectly in Firefox and Chrome, but in Safari the number shows NaN: NaN: NaN Has anyone ever had this problem? I'm using Countdown JS: link...
asked by 17.08.2017 / 14:50
1
answer

Target an ull element with class="menus" excluding the others, only one at a time [closed]

jQuery(document).ready(function() { $('.heading-list').bind('click',function(){ $('.list').children().css({ 'display': 'block' }); }) $('.heading-list').bind('dblclick',function(){ $('.list').children().css({ 'display': 'none' }...
asked by 18.08.2017 / 17:16
1
answer

Observe an element when a new class

It would be these fixed frontend bars, the problem is that I can not find how a class is inserted to by things in it. Example: <div class="main-menu">conteudo</div> After rolling the screen a bit, the class is inserted: <...
asked by 11.11.2017 / 19:52
1
answer

How to change the color of the rows of a table according to the value of each table

I'm having trouble developing a function that changes the color of a <tr> based on a specific value of a <td> I need this function to do for each row, since they contain different values. At first the values are "...
asked by 06.07.2017 / 15:49
1
answer

I can not change the validation mask when I click on a RadioButton

I'm trying to make a mask for CPF and CNPJ within the same field, the user can choose whether to fill the CPF or CNPJ through two RadioButtons, but the problem is that I can not change the mask of the field when alternating between a option or a...
asked by 05.07.2017 / 19:59