This article will help you to download textarea field value on click of download button using javascript. For this purpose we have to create textarea input field to get the data (text) from user and a button to download its content on click of this button. Javascript download function takes two arguments first the ... Read More
There is a few ways to do this. The easiest way to do this is in fact really simple, you just need to add a keyword “selected” to the option that you want selected. Method 1 : Simple html select tag to display option as selected in html. You just need to add an attribute “selected” to the option that you want to be ... Read More
Insert query is used to insert a record into table using mysql, mysqli and pdo. These are basically APIs of PHP that is used to access the MySQL databases and tables. Using these queries you can create, read, update and delete (CRUD) records of a table in the database. But in this article we learn how to insert a record into table using mysql query with all ... Read More
This is one of the common issue found when we try to add two number in javascript. Before we understand about the issue why it happens first we should know the javascript variable types where the value actually stored. JavaScriptis aloosely typed language, means you don't have to specify what type of information will be stored in a ... Read More
PHP Function to display number in k (Killo) , m (millions), B (Billions) and T(Trillion). // Defining function function thousandsCurrencyFormat($num) { if( $num > 1000 ) { $x = round($num); $x_number_format = number_format($x); $x_array = explode(',', $x_number_format); $x_parts = array('k', 'm', 'b', 't... Read More
We use cookies to ensure that we give you the best experience on our website.