Is there any way to select/manipulate CSS pseudo-elements such as ::before and ::after (and the old version with one semi-colon) using jQuery?  For example, my stylesheet has the following rule:  .span::after{ content:'foo' }   How can I ch...
Where this is coming from  When I first learned jQuery, I normally attached events like this:  $('.my-widget a').click(function() {     $(this).toggleClass('active'); });   After learning more about selector speed and event delegati...
I am after documentation on using wildcard or regular expressions (not sure on the exact terminology) with a jQuery selector.  I have looked for this myself but have been unable to find information on the syntax and how to use it. Does anyone know...
I have a layout similar to this:  <div id="..."><img src="..."></div>   and would like to use a jQuery selector to select the child img inside the div on click.  To get the div, I've got this selector:  $(this)...
I'm trying to select this element which has square brackets in the name attribute:  <input type="text" name="inputName[]" value="someValue">   I've tried this (which doesn't work):  $('input[inputName[]...
Have a table column I'm trying to expand and hide:   jQuery seems to hide the td elements when I select it by class but not by element's name.    For example, why does:   $(".bold").hide(); // selecting by class works $("tcol1&#...
All right, say I have this:  <select id='list'>     <option value='1'>Option A</option>     <option value='2'>Option B</option>     <option value='3'>Option C</option> </s...
Is this:  var contents = document.getElementById('contents');   The same as this:  var contents = $('#contents');   Given that jQuery is loaded?...
I have a load of divs with the class testimonial and I want to use jquery to loop through them to check for each div if a specific condition is true. If it is true, it should perform an action.  Does anyone know how I would do this?...
I would like to know what selectors are available for these data attributes that come with HTML5.  Taking this piece of HTML as an example:  <ul data-group="Companies">   <li data-company="Microsoft"></li>   <li...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.