How to Onclick Disable Input Field JavaScript

Sometimes, we need to prevent users to fill the input fields. To do that we have to disable input fields using JavaScript or jQuery. In this article, we are going to learn this technique in JavaScript. Disable Input Fields Using JavaScript It is quite easy to disable an input field using JavaScript. Here, we are going […]

How to Get URL Parameters Using JavaScript

We can get values of URL parameters using the searchParams object in JavaScript. Here we are going to learn some main methods to get various parameters from the URL. Get Single Parameter We can get the value of a single parameter using the get() method. Example <!DOCTYPE html> <html> <body> <script> var url = new […]

How to Submit Form Without Submit Button

There are several ways to submit a form. Generally, we are used to submit a form using a submit button. However, sometimes we have to submit a form using a specific event or by clicking an HTML element. There are several ways to submit a form using JavaScript. Even more, we can also submit a […]

How to Set Onclick Function in PHP

Onclick event is one of the most used events in any user interface. As all events on the website are related to UI, and PHP is a back-end language. So, we can not set direct Onclick event of any PHP function. Wrong Interpretation of Onclick Event in PHP <?php function my_funciton(){ //do something } ?> […]