Questions tagged as 'seletores'

1
answer

Select input with id! = value

a selector like this: $('#minhaDiv input[id!="meuId1"]'); It's common. I'd like to know if it's possible to do something like this: $('#minhaDiv input[id!="meuId1" && id!="meuId8"]'); Thank you.     
asked by 23.10.2015 / 16:04
2
answers

CSS Selector - Execute a loop from a particular loop item

Good morning. Let's say I have a table with 100 rows, plus I'd like my each (JQuery) to start from row 15. Which Css selector should I use? Or does JQuery have any resources? Thanks to everyone     
asked by 14.08.2017 / 15:00
1
answer

CSS selector to modify TAG before or after inside the div

I'm in doubt when applying some styles in css . I want to modify a tag by using a div within it: header { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -web...
asked by 15.01.2016 / 19:49
1
answer

CSS selectors (H1 - H6 applying after p)

I'm in Doubt to apply some effects in css. I tried with the following css selectors: h1+p, h2+p, h3+p, h4+p, h5+p, h6+p { margin: 0 0 0.75em 0; } h1~p, h2~p, h3~p, h4~p, h5~p, h6~p { margin: 0 0 0.75em 0; } h1>p, h2>p, h3>p,...
asked by 12.12.2015 / 17:06
1
answer

Select only the first children of a parent element

I have the following marking: <div class="step-content"> <div id="step-1"> <h1>step 1</h1> <h1>step 1</h1> </div> <div id="step-2">...
asked by 05.08.2015 / 17:52
3
answers

How to use $ .on in pure JavaScript: "$ (...) .on (event, selector, function)"?

This is in jQuery we have on , any element <a> with class test e without the foo class will fire the function when clicked, even though you create the element after the event is already added: $("#new...
asked by 06.06.2017 / 21:42
1
answer

jQuery selector does not find itself

I was putting together a feature that was meant to find other selects with same value when I came across this situation: jQuery('select[name="group2"]').val('emissao'); jQuery('select[name^="group"]').on('change', function(){...
asked by 16.03.2016 / 14:22
1
answer

put variable in jquery selector

I looked at other similar questions, but their answers did not help me because the selector I'm using is different. I want to get a tr in a tbody of a table , using the nth-child(n) selector but in n I want to put...
asked by 03.01.2017 / 19:47
1
answer

Selecting Disabled Items

I need to differentiate the view from a select box where there is an element selected by default, but it can not be selected by the user (as if it were a placeholder of a normal input), but I want to stylize it, I tried to use something like How...
asked by 24.03.2017 / 19:49
1
answer

changing the css of pseudoclasses of elements with jquery is it possible?

I'm doing some testing with jquery , and I came up with the following question: Is it possible to manipulate pseudoelements of css classes with jquery ? $('#login_1').click(function(event){ event.preventDefault();...
asked by 02.02.2017 / 18:45