$( this ).find( 'li.target' ).css("border", "3px double red");
or
$( this ).children( 'li.target' ).css("border", "3px double red");
Use children
for immediate descendants, or find
for deeper elements.
More Related Contents:
- How to Use slideDown (or show) function on a table row?
- Calling a ‘WebMethod’ with jQuery in ASP.NET WebForms
- How to set data attributes in HTML elements
- jQuery html() in Firefox (uses .innerHTML) ignores DOM changes
- jQuery onclick toggle class name
- Jquery datepicker restrict dates in second date field based on selected date in first date field
- jQuery .attr(“disabled”, “disabled”) not working in Chrome
- expand/collapse table rows with JQuery
- JQUERY ajax passing value from MVC View to Controller
- jQuery attribute name contains
- Why cant I load an external resource from jQuery load method?
- How can I select all elements without a given class in jQuery?
- Change content of div – jQuery
- Use Bootstrap 3 dropdown menu as context menu
- jQuery: read text file from file system
- jQuery: dealing with a space in the id attribute
- Return a value when using jQuery.each()?
- Disable scrolling when changing focus form elements ipad web app
- jQuery Animation – Smooth Size Transition
- jquery ui tabs no longer supporting cookie? now what?
- Get mouse position on scroll
- Clear text area
- jQuery toggle animation
- Animate counter when in viewport
- jQuery-Select list option hover
- Cordova 3.4 iOS white screen after splash
- How to Handle Button Click Events in jQuery?
- jQuery Removing specific text from an element
- scroll up and down a div on button click using jquery
- Highlight text inside html with jQuery