Questions tagged as 'jquery'

2
answers

pass parameters by Dialog jQuery-ui

Good afternoon, I have the following code: <?php $list = $conn->prepare("SELECT * FROM produtos"); $list->execute(); echo '<div id="pd_list">'; echo '<div class="head">';...
asked by 25.10.2018 / 17:39
2
answers

Different titles for each slideToggle

I would like to change the code I have here, so that instead of appearing "Reveal Content" on all lines of slideToggle, I can put each one with a title, for example "Revision 1", then the next "Revision 2 "and so on, in the code that I have the...
asked by 24.10.2018 / 20:01
1
answer

Get tab id - jquery

I'm trying to get the id of tab like this: var id = $('.tab-pane').find(':required:invalid').closest('.tab-pane').attr('id'); Now I'm trying this way: $('#FornecedorNovo').on('submit', function (e) { $.each($('input[dat...
asked by 25.10.2018 / 19:33
2
answers

Picking up json data

I created a json with the data of a magazine that I maintain, but now I have to create a separate index by the proper category, by author, and the other fields, I was able to get the general data, but I can not filter this data into its correspo...
asked by 23.10.2018 / 22:52
2
answers

Set menu with bootstrap after scrolling down

I'm using bootstrap in my code You have a class in% of the bootstrap setting nav on top    navbar-fixed-top But I want nav to only be fixed when the scroll passes through it. How do I do this? An example:...
asked by 06.07.2017 / 10:17
2
answers

audio in hidden div

I have a div with display: none and this div has an audio, but if I use autoplay, even if the div is hidden, the audio stays playing, I would like it to play the audio only when the div is appearing. Can you help me? <div class="fig1">&l...
asked by 09.07.2017 / 06:29
3
answers

How to use a Global variable in two Jquery codes to execute conditions?

Here's a simplified example of what I'm doing. I need to check if the variables passed before and that would change the Global are true in the checkbox. $(document).ready(function() { var usuario_ok; $('#cadastro').on('keyup', 'i...
asked by 13.07.2017 / 20:21
1
answer

Jquery, exchange images when clicking

When I click on the image it changes the text, when it clicks on the bottom, it changes the text but I need it when I click on the image, which activates the jquery function, change the image. So, for example, I need to switch% from% to% with%...
asked by 31.10.2018 / 16:48
1
answer

Show and Hide field with Select

I'm trying to display some fields of a form and in part I get it to work, but not quite even reviewing the code. I need to show the inputs with the labels and hide the inputs with their labels . When the select is of Tipo Pe...
asked by 04.10.2018 / 14:04
2
answers

How to make a Countdown with jQuery that restarts weekly

I have to do a countdown timer for a promotion. I need this counter to restart every Tuesday at 00:00 p.m. to make it look something like this:    "Only 6 days remaining 12 hours 42 minutes and 37 seconds left for the end of the promotion"...
asked by 16.11.2018 / 18:31