Category Archive for: "Tips and Tricks"

  1. Articles

    jQuery Change Class Examples – Add Class, Remove Class, Toggle Class & more

    jQuery provides us with different methods to ease up the process of working with classes assigned to elements. Some of the main methods are to add class, remove Class, toggle Class & to check if an element has a class or not, change class using jQuery. In this article, I am going to discuss all […]

  2. jQuery

    jQuery Check Class Examples

    Do you wish to check if element has Class using jQuery but do not know where to begin? Worry no more! In this article, I am going to share a very easy and efficient way to check if any desired element has a specific class or not using jQuery. Read on to find out more.

  3. jQuery

    jQuery Count Elements Examples

    When working with different elements of a web page, it might be necessary at times to count the number of elements by using their class. In this article, I am going to share a very easy way to count the number of elements that have the same class using jQuery. The actual code is just […]

  4. jQuery

    jQuery Get Text Examples – Get Anchor Text Hyperlink Text & more

    Many times when working with different elements of a web page, we might feel the need to get it’s text. In this article, I am going to share a very easy way to get text of an anchor, a hyperlink or any other element using just 1 line code. Examples also follow, so read on.

  5. Tips and Tricks

    WordPress Last Insert ID | Get wpdb Last Insert ID in while loop

    WordPress Last Insert ID : In WordPress, at some point or the other, you may have come across a situation where you would need to get the last insert id i.e. the value of the auto-increment column as a result of insert operation performed. If you are running a normal SQL query, you would get the […]

  6. Tips and Tricks

    WordPress Shortcodes Not Working? Make Shortcodes work in Theme,Plugin

    Shortcodes in WordPress are a result of the Shortcode API, introduced in WordPress 2.5. Shortcodes are a simple set of functions for creating macro codes for use in content and can be used in Themes, Plugins, etc. At times, it’s possible that you may have used a shortcode in a Theme or a Plugin & expected […]

  7. jQuery

    jQuery Set Width in px, em, pt (Div, li, etc.)

    In an earlier article, we have seen how we can get the width of an element, such as a div, li, etc. using jQuery. In this article, lets discuss how you can set the width in px(pixels), em, pt, etc. using jQuery The actual code to is just 1 line, so it’s super easy to […]

  8. jQuery

    jQuery Get Width Examples (Div, li, etc.)

    If you have read through some of my previous articles, you have seen how we can get the height of a div, li, or any element using jQuery. Now if you are wondering how to get div width or width of any other element, then this article is for you. It is very easy to […]

  9. jQuery

    jQuery Set Height in px, em, pt Examples (Div Height, li Height, etc.)

    In an earlier article, we have seen how we can get the height of an element, such as a div, li, etc. using jQuery. In this article, lets discuss how to set height in px(pixels), em, pt, etc. using jQuery The actual code to  is just 1 line, so it’s super easy to follow along. Read […]