Tag Archive for: "jquery-tips"

  1. 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 […]

  2. 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 […]

  3. 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 […]

  4. 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 […]

  5. 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 […]

  6. jQuery

    jQuery Get Height Examples (Div height, li height, etc.)

    While working with jQuery, at some point of time or the other, you may have come across a requirement that requires you to get div height or get li height or get height of any other element. If you are wondering how complicated that would be, you would be pleased to hear that it’s not […]

  7. jQuery

    Check if Variable is Set or Not (Undefined) using jQuery

    Ever wondered how to Check if Variable is Set or Not using jQuery? If yes, then this article is for you. At times, it may be very important to check if a variable is Undefined or if already contains some value so that you can perform related operations. You may encounter such a case when […]

  8. jQuery

    jQuery Move Div Contents To Another Div Examples

    At times, it might be desirable to move contents of a div into another div, while retaining the divs themselves, as is. And in some other instances, you might want to delete the source div, once it’s contents are copied to the destination div. In this article, I am going to share a very easy […]

  9. jQuery

    jQuery Wrap IFrame (in Div) Examples

    While working with iframe (or with any other element), it might sometimes be desirable to have a complete control over it, such as it’s spacing, padding, alignment, etc. For the same reason, it can be very helpful to wrap the iframe (or the desired element) in a div, so that appropriate CSS styles can be […]