Questions tagged as 'seletores'

1
answer

CSS Performance (CSSOM and selectors)

Given the CSSOM assembly by the browser and parser (read) that is given right to left . I would like to ask a question because I was writing a css in a project and I always have performance issues with me not using Type Selectors and I try...
asked by 28.07.2015 / 18:10
1
answer

Why do selectors with prefixes in the same rule do not work?

For example if I do this to leave the element that is in fullscreen with height and width equal to 100% it does not work: :fullscreen, :full-screen, :-webkit-full-screen, :-moz-full-screen, :-ms-fullscreen { width: 100% !important; hei...
asked by 19.03.2017 / 20:37
1
answer

What does "eq (0)" serve and how does it work?

I was seeing a slider tutorial for jQuery, and in a part of the code, in which the objective was to go back to the first image, the code author did in a way I do not know, I knew how to search this on Google: $(".ativo").fadeOut().removeClas...
asked by 02.01.2015 / 16:04
1
answer

Concatenate in loop with jQuery

I need to concatenate with jQuery all input values that have classes that start with "item_". I'm using the function below but it did not work. $(document).ready(function() { $('button.vai').click(function(){ var item = $("input[cla...
asked by 17.09.2015 / 03:54
3
answers

jQuery, do not select 'child' element

I have this code that makes a kind of fancybox, it turns out well but I liked that the click on the image did not make the '#overlayFancy' disappear, it was good that only the click outside the image is to make it disappear with everything , alt...
asked by 29.08.2014 / 12:58
1
answer

JQuery does not take input value

$(document).on('click','#submit',function(){ console.log($('#prescricao[qtd][1]').val()); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><inputtype="text" name="prescricao" id...
asked by 17.08.2017 / 17:46
1
answer

Transition in elements using: hover: after

How can I apply a transition, for example in a background:linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 40%) without hover and background:linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 60%) with hover...
asked by 31.01.2017 / 17:44
3
answers

css selector syntax for deleting td element with jQuery

Some way to use jquery and selectors in a similar way? $("#tabela td").empty(); I need to delete only the tr lines that contain td of a table like this, but not the tr lines that have th elements. As I'm doing, it d...
asked by 25.07.2014 / 15:14
2
answers

CSS - How to select the last brother?

I have the following HTML structure: <form action="" id="form-contato"> <label for="nome">Nome</label> <input type="text" name="nome" id="nome" placeholder="Nome"/> <label for="email">E-mail</lab...
asked by 18.09.2016 / 15:08
1
answer

Tab via Jquery

I have a field with the "Barcode" class where a barcode reader will be used to fill it, at the end of the reading with the reader it will generate a \ n, I could already capture it and treat it, however, when that happens , I need to focus to th...
asked by 17.07.2015 / 19:41