Category: JavaScript

How to Disable(false) sorting of one column from DataTables?

If you want to remove or hide or deleting sorting ascending and descending order arrows or disable sorting ascending and descending order on particular columns in datatables library also set “ordering”: false than you can do it using columnDefs. i can simple disable(datatable sorting false) ordering arrows from table in data tables js. even you

Allow only numbers in textbox jquery on keypress

If you required to add allow only numbers in textbox jquery on keypress or jquery based validation for your HTML Form textbox such as textbox should accept only numbers values on keypress event. therefor you can also use keyup or keypress event to allow only numeric values in textbox using jquery. jquery allow only numbers

javascript get current time

Get Current Date & Time, print Current Date, Current Time and Current Date & Time Both using JavaScript Example. Date and time js Tutorial here I will learn How to Get Current Date & Time in JavaScript? var today = new Date(); : Related Query : How to get current Date and Time using JavaScripts

css disable button

here learn to step by step “css disable button” using JavaScript and jquery with HTML. jQuery Enable Disable Submit Buttons Example CSS Code using “css disable button click” <button id="btnSubmit" class="btn-css-disable">Get Product Data</button> <style type="text/css"> .btn-css-disable { cursor: not-allowed; pointer-events: none; /*Buttons disabled - CSS color class*/ color: #c0c0c0; background-color: #ffffff; } </style> Also Read:

call javascript function from html

simple bellow Example display results using the call javascript function from html Calling a function using Pure js and here how to use php in javascript? – Example | php code in javascript. index.html <html> <head> <script type = "text/javascript"> function myfunction() { alert("Welcome to Pakainfo.com"); } </script> </head> <body> <p>here simple Click the following

hasproperty in javascript – How to Check If an Object Has a Property in JavaScript?

In this best post for hasproperty in javascript, you’ll read all about the 3 methods(hasOwnProperty() method, in operator, Comparing with undefined) to check if an object has a characteristic of an object : Compare with typeof and undefined. Use hasOwnProperty method. Use in keyword. Comparison with typeof Check if the type of a characteristic of

How to change date format in PHP?

This Article helps to you date format in php using strtotime() as well as date() methods to convert date time formats for user friendly. For simple example you have stored a date like as a YYYY-MM-DD default formats in a php variable as well as required to update this to MM-DD-YYYY date formats. How do

PHP Password protected Web Page

in php password protected page, secure Password protect your data content with Web Page Password Protect by just including single line of PHP source code to your web page source. full source code will present user with secure password entry form, and will not let any type of the visitor see your private all the