What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-15 02:00:04
get elapsed time javascript date
var startTime, endTime; function start() { startTime = new Date(); }; function end() { endTime = new Date(); var timeDiff = endTime - startTime; //in ms // strip the ms timeDiff /= 1000; // get seconds var seconds = Math.round(timeDiff);... Add solution -
CSS 2021-09-14 01:38:01
table essentaial styles css
Make your table markup as simple as possible, and keep things flexible, e.g. by using percentages, so the design is more responsive. Use table-layout: fixed to create a more predictable table layout that allows you to easily set column widths by setting w... Add solution -
PHP 2021-09-13 19:54:03
form validation in php
<?php // define variables and set to empty values $name = $email = $gender = $comment = $website = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = test_input($_POST["name"]); $email = test... Add solution -
Javascript 2021-09-13 09:20:02
jquery datatable disable sorting on specific columns
jquery datatable disable sorting on specific columns "columnDefs": [ { "orderable": false, "targets": 2 } ] JSFiddle Here <!--Script.js--> $('#table').DataTable( { "columnDefs": [ { "orderabl... Add solution
Best helpers
Ranking is empty