Category Archive for: "Tips and Tricks"

  1. PHP

    Add To An Array Using PHP Examples

    No programmer or developer can deny the importance and usefulness of arrays, regardless of the programming language used. A very basic, yet important concept is to add element to array using PHP. So do you know how to add an item to an empty array or simply add to an array with pre-existing elements? If […]

  2. jQuery

    jQuery Set Label Text Examples

    jQuery Set Label: In the previous article, we talked about HTML Labels and how they form an easy & important part when dealing with the different form elements as it allows us to define labels for them. Let’s assume that you have some HTML elements on a web page but without their corresponding labels or their existing labels need to be changed. What if you needed to Set Label Text of an input element such as Textbox, Textarea, Checkbox, Select Dropdown, Div,or any other element? Do you know how to set label for input and/or for an element? If not, this article is for you. In this article, I am going to share with you easy ways to set label text of input elements & page elements using jQuery with easy to follow examples. So read on to find out more.

  3. jQuery

    jQuery Get Label Text Examples

    HTML Label forms an easy & important part when dealing with the different form elements as it allows us to define labels for them. The HTML Labels add to the usability as it toggles the associated control when the label is clicked upon. So far so good. But what if you needed to get the label text […]

  4. Snippets

    WordPress Display Thumbnail for Post (2 Ways)

    Did you ever want to make WordPress display Thumbnail for post but did not know how to do it? I am going to discuss 2 ways to do this. Just copy this snippet into your theme, wherever you want to display the thumbnail and that should do it.

  5. Tips and Tricks

    PHP Delete / Remove From Array Examples

    A very important concept in PHP is the arrays. So if you are familiar with it, you may have come across a situation where you wanted to use PHP to remove element from array. So do you know how to delete a specific element from array? If not, this article is for you. In this […]

  6. jQuery

    jQuery Replace Textbox With Another Element Examples

    When working with different form elements, there might have been a time when you needed to replace a certain element in the form with another. In this article, I am going to share with you an easy way to replace a form element with another & specifically, use jQuery to replace textbox with another element. Examples follow.

  7. JavaScript

    How To Check If Textbox Is Empty Using JavaScript

    If you have worked with forms, then you would know how important it is to process the form input to make sure that all the required information is filled out properly. In this article, I am going to share a very easy way that you can use to check if Textbox is Empty using JavaScript.

  8. jQuery

    Populate Select Dropdown With Array Values Using jQuery Examples

    While working with select dropdown, you may have noticed that it is very easy to work with them, if they are already filled with the option values. But let’s say that now you do not know anything about the values that need to be populated in the select dropdown, rather let’s call it a dynamic […]

  9. Snippets

    WordPress: Get all Categories of a post (both parent and children/sub categories)

    Have you ever wondered how to retrieve or get all categories of a post?  This little snippet will help you make WordPress get all Categories of a post (both parent and children/sub categories).