Use the :first selector..
$("section:first").attr("class", "XXX");
More Related Contents:
- Updating php values using jquery
- How to dectect objects' overlaping situations in javascirpt? [closed]
- What is the best way to handle onchange event on a div? [closed]
- How to capture the Print Event?
- jQuery selector regular expressions
- Run javascript function when user finishes typing instead of on key up?
- Why is it a bad practice to return generated HTML instead of JSON? Or is it?
- How to get the focused element with jQuery?
- HTML – attributes vs properties [duplicate]
- Jquery Change Height based on Browser Size/Resize
- How can val() return Number?
- window.focus(), self.focus() not working in firefox
- Can javascript access iframe elements from the parent page?
- How to localize a simple HTML website page in my case?
- how to compare two elements in jquery [duplicate]
- jquery: unload or beforeunload?
- Open infoWindows from an external link outside of the google map
- How to download PDF automatically using js?
- Get the offset position of the caret in a textarea in pixels [duplicate]
- jQuery keyboard events
- Prevent iOS bounce without disabling scroll ability
- Jquery click function is not working for dynamic elements
- Javascript – Leading zero to a number converting the number to some different number. not getting why this happening?
- How to get an element by its href in jquery?
- How to negate code in “if” statement block in JavaScript -JQuery like ‘if not then..’
- Keep tabbing within modal pane only
- jQuery $.ajax(), pass success data into separate function
- jQuery InnerText not including sub element
- Looping through Markers with Google Maps API v3 Problem
- Grouping JSON by values