Checking a checkbox with jQuery?
$(".myCheckbox").attr('checked', true); // Deprecated $(".myCheckbox").prop('checked', true); Check if the checkbox is checked There are several ways to get to work out if a checkbox is
$(".myCheckbox").attr('checked', true); // Deprecated $(".myCheckbox").prop('checked', true); Check if the checkbox is checked There are several ways to get to work out if a checkbox is
Sometimes you may need to eager load a relationship after the parent modal has already been retrieved. For Example this may be very useful if
Here is the simple code snippet to get all the tables under the database in laravel framework. $tables = DB::select('SHOW TABLES'); dd($tables); I hope you
Here is the simple laravel’s eloquent code snippet to get results in a table when there are no results for the relationship. I have two
Yii2 Default application name is “My Application”. You can change this name by editing the config/main.php. Just add the application name property in Config Array.
In this post, I would like to show you how to create a drop-down list in yii2. This tutorial will help you to display the
var url = 'http://www.arjunphp.com/'; $(location).attr('href',url); I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face -
Here is the list of type checking function in PHP. Function Description is_array() Check for array type is_bool() Check for true or false type is_float()
You can use the fgets() function with combination of fopne() funciton to read the file line by line. $filename = "inputfile.txt"; if (file_exists($filename) && is_readable
Template pattern comes under behavior pattern group, as it’s used to manage algorithms, relationships and responsibilities between objects. This is an easy Pattern to understand,
The alternative PHP tags <% (and <%=), %>, <script language=”php”>, and </script> have been removed in PHP7. Additionally the asp_tags ini directive is removed. Trying