Category Archive for: "Tips and Tricks"

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

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

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

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

  5. jQuery

    jQuery Get Textarea Value when button is clicked Examples

    If you ware wondering how to find or get Textarea Value  using jQuery, then this article is for you. Many times web designers/developers happen to work with forms and at times, it might be very essential to find the textarea value. In this article, I am going to show you how to find the textarea value […]

  6. jQuery

    jQuery Get Image SRC On Click Examples

    While working with Web Design/Web Development & jQuery, it might be desirable to get image source using jQuery. Very often, the situation can demand us to get image source on click of a button or a div, etc. so that you can do other stuff, like store the path to that image in the database, […]

  7. jQuery

    jQuery On Focus Select Text Examples (Highlight Text of Textbox, etc.)

    While working with forms, it might be desirable sometimes to be able to select text/content of a textbox/textarea upon focus, so that you can copy it or delete in just a single step or so. The default functionality of a textbox/textarea is that upon focus, the mouse cursor gets positioned in the textbox/textarea and it […]

  8. jQuery

    jQuery String Replace Examples (includes Find & Replace String)

    Many a times, you may have come across a situation where a particular piece of text in an article of a page is unnecessary or need to be removed/replaced with another string, or with empty spaces, etc. This could be of great help when you are dealing with data, that is accompanied by some default […]

  9. jQuery

    jQuery Check All Checkboxes Examples (Using Class, ID, Name..)

    While working with Forms, you may have come across times when you needed to work with different form elements such as textbox, textareas, radio button, checkboxes, etc. As you know, checkboxes also form an important part of a form. In this article, I am going to share with you a very simple & easy way […]