Questions tagged as 'jquery'

2
answers

Javascript does not get changed array before the click

I have a click code: var layerMap = []; $(document).on('click', '#TipoMapa', function(){ console.log(layerMap); }); And I have a code that changes the layerMap variable: $(document).on('click', '#tipo', function(){ layerMap['...
asked by 19.12.2017 / 14:12
1
answer

pass select value with array by ajax

I need to pass information from a select array to ajax but I can not. My form: <form method="post" id="form1"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table-data"> <tr> <td> <select name...
asked by 18.06.2018 / 15:48
1
answer

Checking whether an element is visible or not on the page

I have the following buttons: First button: <button id="modal-btn" class="button btn-cart btn-verde-claro"> <span>Comprar</span> </button> Second button: <div class="btn-comprar-fixed-mobile" id="btn-comp...
asked by 05.01.2018 / 18:41
2
answers

Filter a list of spans with jquery

I needed this a little urgent, can you help? I need to filter a list of spans: <div class="list-group pre-scrollable lista"> <?php for($i = 0; $i < count($ambientes); $i++) { ?> <span class="list-group-item listaAmbien...
asked by 02.01.2018 / 12:19
1
answer

Div appear once

How to make a Div (not a pop-up, but more like a screen saver) pop up only once every 6 hours using JQuery and Cookies? I can not use PHP because the platform I'm using is Blogger and it does not allow it.     
asked by 09.12.2017 / 17:26
1
answer

I have a problem in 2 scripts ... Tabbed browsing

Well I'm trying to solve a really annoying problem, I'm trying to make a page in nav of tabs and it uses jquery : " link " But I'm also with another script and it's using: link If my uncle 3.2.1 my script does not work, and the na...
asked by 07.01.2018 / 11:11
4
answers

maxlength in currency mask

I'm using this currency mask, it works fine even though putting a maxlength into input does not limit the number of numbers. <script language="javascript"> function MascaraMoeda(objTextBox, SeparadorMilesimo, SeparadorDecim...
asked by 06.12.2017 / 20:59
1
answer

JavaScript function doubling data when loaded dynamically

I have a function called a calculator to which the page loads dynamically several times (whenever the user calls the calculator page). When you load the first time it is normal, but the more you load the page, the more values multiply. Ex:...
asked by 06.12.2017 / 15:30
1
answer

Fit file exported from html to pdf

I have taken an example of internet here: JS Fiddle to generate PDF from data that is in HTML . However, in my case, the data was very misaligned .. let's see; MyHTML:<divclass="panel-body"> <table id="idTabela" cla...
asked by 09.12.2017 / 21:56
1
answer

Generate Twitter-Bootstrap alert within the script itself at the click of a button

I wonder if it's possible to create and open a Twitter-Bootstrap alert (.alert) with a custom message inside the script itself, without having to create the custom div outside the script and call it? When clicking the "myInput" button, create an...
asked by 14.12.2017 / 01:44