Questions tagged as 'jquery'

1
answer

Check if element exists with jQuery selector

Why this, if (typeof($("div#elementoquenãoexiste")) !== "undefined") { console.log("existe"); } returns "existe" in logs? Should not return% of%, taking into account that the element that the selector indicates does not exist? Or...
asked by 31.01.2016 / 14:34
2
answers

How to make a tutorial of first access to the site?

I would like to create a First Access Tutorial for my Site , those that show what each field in the site means, need a hint how to do it or if there is any Framework for this type of interaction with the user, I did some research and did not fi...
asked by 08.03.2016 / 16:36
3
answers

Get font size in HTML

I need to get the information from the font that is set up in the HTML tag with JQuery. I know that to get the size of the font-size just use: css: p {font-size: 12px;} JS: var tamanho = $("p").css('font-size'); The question is,...
asked by 06.10.2017 / 20:39
2
answers

dynamic url in ajax

How do I get Ajax to get the current URL? For in it are the values that go to php. If I do it works like this jQuery.ajax({ url: "http://localhost/jogoteocratico/consulta.php?dificuldade=1&rodada=1", type: "GET", dataType: 'j...
asked by 28.01.2017 / 19:51
4
answers

Given a group of options, one should at least be selected, using jQuery

I have a group of check boxes that allow you to select flags on a search screen. It turns out that if I allow the user to clear all, it is certain that there will be no result. That being said, I wish it would not be allowed to uncheck all check...
asked by 24.02.2014 / 23:14
3
answers

How to do a filter through attribute on an object / array

I think it's a simple question but I'm not finding a solution to my problem. Example: Object: {projectId:"1" name:"Projeto A" image:"imagem.jpg"} {projectId:"2" name:"Projeto B" image:"imagem.jpg"} {projectId:"3" name:"Projeto C" image:"...
asked by 24.10.2017 / 13:45
4
answers

How to leave active bootstrap tab after clicking pagination?

I'm with a bootstrap screen that contains two tabs, one called "Settings" and the other "Users". Within the "Settings" tab, I have a simple, normal form, already inside the "Users" tab, I have a select from the bank, and with that result I set u...
asked by 23.12.2013 / 16:45
1
answer

I can not hide an element with css by taking the data-column attribute

I have an input with the code below: <input type="search" class="filtro tablesorter-filter" placeholder="" data-column="1"> I'm using a css page to try to hide it: <style> input[data-column=1] { display:none } </style>...
asked by 18.12.2013 / 19:42
2
answers

Difference between 'click', 'bind', 'live', 'delegate', 'trigger' and 'on' functions?

I gave a searched but there is not a comparison list between the functions below: $().click(fn) $().bind('click', fn) $().live('click', fn) $().delegate(selector, 'click', fn) $().trigger('click') $().on('click', selector, fn); How do all...
asked by 28.09.2018 / 20:37
3
answers

Partial selection of a class with jQuery

Hello, I would like to know if you can select a class / element from a partially informed value, for example: <div class="chart-piso c100 p100 orange big"> <span id="percPiso">100%</span> <div class="slice">...
asked by 26.01.2017 / 12:55