Archives

A simple way to change the placeholder text using jQuery

The placeholder is an attribute in HTML that help users to know the expected value of the input field. It is visible to the users until the user enters the value in the input field. In following example, I have used j Query’s attr() method to change the placeholder text and the scenario is, when… Read More »

How to add class to parent div using jQuery

In this blog, I am going to share with you a small how to guide that will be helpful for you if, you are looking for the code to add a class to parent div using jQuery library. Let’s say, you have structured your HTML document as following and you are interested in adding a… Read More »

How to delete key in Redis Cache in Laravel?

In this blog, I am going to share with you a small tutorial that will help you to understand how you can delete key in Redis cache. To delete the Redis key in laravel, first of all you have use this Illuminate\Support\Facades\Redis Laravel facade. And then use below method: Let’s say, you have a key… Read More »

How to hide element by id in jQuery

jQuery has a lot of methods available that can help you in performing task easily without writing multiple lines of codes in JavaScript. In this blog, I am going to share with you multiple tricks, by using, you can hide element by id in jQuery easily. Lets say, you have a <div> which has assigned… Read More »