Disable Mouse Right Click, Cut, Copy & Paste? Full JavaScript code for disabling mouse right click and disable cut (CTRL+X), copy (CTRL+C) and paste (CTRL+V) …
Read MoreJQuery
DISABLE MOUSE RIGHT CLICK
WANT TO DISABLE MOUSE RIGHT CLICK?? Disable mouse right click will prevent visitors from choosing the cut, copy and paste options. If you want to disable …
Read MoreCopy Container Text in JavaScript
Copy Container Text in JavaScript <script type=”text/javascript”> function myFunction() { /* Get the text field */ var copyText = document.getElementById(“myInput”); /* Select …
Read MoreOn Click Copy the text in javascript
On Click Copy the text in javascript $(“.copy-mediaUrl”).on(‘click’ , function(){ var b = $(this); var media_id = ‘mediaurl-‘+ b.data(‘id’); …
Read MoreTinyMCE URL Conversion Example
relative_urls : false, remove_script_host : false, convert_urls : true, LIKE:: <script> tinymce.init({ selector: ‘.rte’, height: 500, …
Read MoreTrim in Javascript
Trim in Javascript:: function myTrim(x) { return x.replace(/^\s+|\s+$/gm,”); } function myFunction() { var str = myTrim(” Hello World! …
Read MoreSelect all Checkbox in Javascript
Select all Checkbox in Javascript:: <script type=”text/javascript”> $(document).ready(function(){ $(“#checkbx_selectall”).on(‘change’, function() { if(this.checked){ $(‘.__chckbx_select’).each(function(){ …
Read MoreCheck if Field is empty or Not in Javascript
Check if Field is empty or Not in Javascript:: $(“#search-form”).on(‘submit’,function(){ var dis = $(this); searchbox = dis.find(“input[name=’product_name’]”).val(); var submitform = true; $(“#search-form-msg”).css(‘color’,’red’); if(searchbox.trim().length == 0){ …
Read Morefind input by name jquery in a form on submit in Javascript
find input by name jquery in a form on submit in Javascript:: $(“#search-form”).on(‘submit’,function(){ var dis = $(this); searchbox = dis.find(“input[name=’product_name’]”).val(); console.log(searchbox); return false; });
Read More