Questions tagged as 'jquery'

1
answer

Hide div's ScrollBar with overflow: auto

I have a% d% d that groups all site content with the following css: margin: 15px 12px; background: #fff; padding: 20px; height: calc(100vh - 30px); overflow: auto; My body has .content different, to simulate a border. It's 100% funct...
asked by 03.11.2016 / 23:03
1
answer

Change picture or image color in virtual store

Colleagues. I have seen in some virtual stores that there is the ability to change the colors of the product. How would I do that by clicking on a particular color, the product would be changed without refresh? see a template: lapupa.com.br/5...
asked by 10.01.2017 / 10:34
1
answer

Sort the keys of an object simulating ORDER BY ASC NAME

In mysql on the command SELECT * FROM minha-tabela ORDER BY nome ASC the list will be returned with all results sorted in ascending order based on column nome , I would like to know how I can do the same with a js object; Example:...
asked by 05.01.2017 / 23:42
1
answer

Browser message after AJAX request

I have an ajax request responsible for sending a file to the servlet, it is performing the process correctly. But when I update the page the following message is displayed by the browser (When I give an f5):    The page you are looking for ha...
asked by 21.04.2016 / 17:33
3
answers

How to count number of button clicks to increase fonts in accessibility bar?

I'm creating an accessibility bar and it has the options to increase and decrease the font. Here is the code for the buttons: <button type="button" id="btnAumentar">A+</button> <button type="button" id="btnDiminuir">A/</bu...
asked by 20.02.2016 / 13:12
1
answer

What is the difference between .data () and JQuery.data ()?

I was reading the jquery documentation and I do not quite understand what the main difference between two is since they both serve to store data from an html tag.     
asked by 26.02.2016 / 23:22
1
answer

How to create button with function to export the DataTable to (.csv) in jQuery?

I have the following button: $(document).ready(function() { $('#example').DataTable({ "dom": 'T<"clear">lfrtip', "tableTools": { "sSwfPath": "/swf/copy_csv_xls_pdf.swf" } }); }); <script src="https:...
asked by 12.03.2016 / 21:03
1
answer

Is there a performative difference between on-chained with on with multiple events?

I've always used on with multiple events with the thought that it would simplify my code and make it easier to understand, but from time to time I came across several plugins using the thread in a chained form. Example with multiple events:...
asked by 01.03.2016 / 19:25
1
answer

Find the index of all occurrences in a string with jquery

How to find the index of all occurrences of a one string within another string with jquery? Example: String all "three sad tigers for three wheat dishes, three wheat dishes for three sad tigers." String I want to find the indexes: "three"...
asked by 09.03.2016 / 14:29
2
answers

Search for content within tag parameters

I'm creating a search bar where the user goes typing and is filtering the content of <li> in real time. I have a similar code: HTML      <ul id="list-search-filter-map"> <li><a href="">Conteudo 1</li&g...
asked by 28.12.2016 / 14:09