Showing posts with label jQuery. Show all posts

How to Add Active Navigation Class Based on URL?

Ideally you output this class from the server side, but if you can't... Let's say you have navigation like this: HTML: <nav>     <ul>         <li><a href="/">Home</a></li>    .
Thursday, 24 April 2014
Posted by Jebastin

jQuery to load first 5 elements & click "load more" to display next 5 elements

jQuery functionality to load first 5 elements & click "load more" to display next 5 elements. HTML: <ul id="myList">     <li>One</li>     <li>Two</li>     <li>Three</li>    .
Wednesday, 19 February 2014
Posted by Jebastin
Tag :

How to get the class name using jQuery?

Consider the following HTML: <div id="myId" class="myclass"></div> jQuery: var className = $('.myclass').attr('class'); (or) var className = $('#myId').attr('class'); Reference: StackOverflow.c.
Posted by Jebastin
Tag :

Link To This Post/Page

Spread The Word

Add this button to your blog:
JJ Technology Solutions

Blog Archive

Trackers

eXTReMe Tracker
facebook

- Copyright © 2025 JJ Technology Solutions - Powered by Source Code Solutions -