How to find selected and unselected item in select2 dropdown
While using select2 library, if you have to find the selected and unselected item based on the change event when you check or uncheck the items. Based on the checked…
While using select2 library, if you have to find the selected and unselected item based on the change event when you check or uncheck the items. Based on the checked…
1. Use HTTPS and SSL Certificates SSL (Secure Socket Layer): SSL encrypts the data transferred between the user’s browser and the server, preventing interception by attackers. Implementation: Obtain an SSL…
<html> <head> <script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js”></script> <script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.full.min.js”></script> <link rel=”stylesheet” type=”text/css” href=”https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.css”> </head> <body> <script> jQuery(document).ready(function(){ var allowedDate = ; jQuery(‘#date-needed’).datetimepicker({ format: ‘Y-m-d’, timepicker:false, // maxDate: ”, onShow:function( ct ){ this.setOptions({…
How to reorder table rows using drag and drop and automatically save the sequence in database. Sample Table code start <table class=”table table-bordered” id=”tbl_1″> <thead> <tr> <th width=”25%”>Column1 Label</th> <th…
If you have to copy any files from one server to another, you normally copy the same using FTP or wget. But some time wget function is disabled on server…
When you have to prefix any hard coded value in a text field, like for example in telephone field you have to prefix the country code and dont want the…
<script type=”text/javascript”> var formChanged = false; jQuery(window).load(function() { // This is triggered when the entiire page is loaded fully // form id and all the possible filed type in that…
Sometime there is need to use some plugins in an application and you have the need to customize it UI or functionality to meet your business requirements. You install the…
Put the below code in youractivetheme.theme file /** * Implements hook_preprocess_HOOK(). */ function _preprocess_webform_confirmation(&$vars) { if ($vars->id() == 'put your webform id') { // Set your custom message here $markup…
How to use “grep” command in linux or macos to find text inside all files in a folder and including subdirectories Command for the same is grep -rl "string to…