Questions tagged as 'jquery'

1
answer

$ .fn.data - jQuery

Well, I'm banging my head on this code, I'm reading a book about jQuery, but I can not get this code to work, someone can give a hint on how to solve it, and what this method works for ($ .fn. date). $('#minhaLista li').each(function(){...
asked by 29.08.2018 / 18:15
0
answers

How to change the image of the site depending on the screen resolution of the device?

I have a carrot in Bootstrap, and I'm trying to change the images of it depending on the screen resolution of the device using Javascript, but I do not know how to make it work. var width = screen.width; var image1 = document.getElementsB...
asked by 23.08.2018 / 01:49
1
answer

Sent POST of text "td" via AJAX

Good afternoon, I have this code: <?php foreach ($resultado as $row) { ?> <tr> <td class="seis"><?php echo $row['seis']; ?></td> <td class="b...
asked by 23.08.2018 / 21:50
0
answers

Clone HTML element without cloning event

I have in my HTML a form that I use for "mock" that is, it only serves to be clonado to other places. After the first cloning I change some inputs so that they use a plugin of datetimepicker but after trying to clo...
asked by 27.08.2018 / 20:14
2
answers

Put animation in the hide of a div

I'd like to add animation for my div to disappear, I was looking at this topic Hide div when you click on it , but it did not resolve because my version of JQuery is more up-to-date. Button: <button type="submit" class="btn btn-succe...
asked by 20.08.2018 / 18:58
1
answer

What's wrong with the jQuery code I wrote?

Hello, friends! I'm new to programming, and would like help identifying a problem in building a code to create a "Go to the top of the page" animation button in jQuery. What I wrote seems correct, but once it is fired once, the scroll bar sti...
asked by 22.08.2018 / 01:46
1
answer

Rewind HTML5 video after clicking without acceleration or lag

What I need I need a script (Javascript, jQuery, etc.) to rewind a video after clicking. I used a script I found in some forums, but it rewinds the video with acceleration, which makes the animation look bad / strange. It would need to be a...
asked by 17.08.2018 / 17:06
0
answers

Additional method Jquery Validate ViaCep

Hello, I created an additional method with Jquery Validator to query the Brazilian ceps plus is returning false with valid ceps ... can anyone help me please. $.validator.addMethod('cep', function(val) { var cep = val.replace(/\D/g, '');...
asked by 17.08.2018 / 18:03
0
answers

Refresh a div from a dashboard without reloading the entire html page [duplicate]

I'm finishing my CBT and I came across a problem. I am creating an administrative control panel and would like it to display in real time a count of a table in my database. I was told that the ideal for this situation would be jQuery + Ajax .....
asked by 19.08.2018 / 18:46
1
answer

Mobile menu, issue with event delegation

I'm creating a desktop / mobile menu that will be replicated a few times on the page, however my code has a bug that when you click open one ends up opening all. Follow the code <div class="nav-section"> <div class="menu-button-se...
asked by 20.08.2018 / 07:41