How to fix If value is infinity, empty and NaN in jQuery?
fix If value is infinity, empty and NaN in jQuery if (theResult == Infinity || theResult == “” || theResult == NaN) { theResult == 0;}$(“#theResult”).val(theResult);
I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.
fix If value is infinity, empty and NaN in jQuery if (theResult == Infinity || theResult == “” || theResult == NaN) { theResult == 0;}$(“#theResult”).val(theResult);
Get back page in php with back button <button onclick=”history.go(-1);”>Back </button>
Fetch file name, extension and basename from url in php <?php $file = ‘http://localhost/brrrr/wp-content/uploads/2019/11/New-Business-card-4.jpg’; $ext = pathinfo($file); echo $ext[‘dirname’] . ‘<br/>’; // Returns folder/directory echo $ext[‘basename’] . ‘<br/>’; // Returns
Create logout page with session in wordpress <?php session_start(); session_destroy(); session_unset(); //echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’”;</script>’; if(!isset($_SESSION[‘ID’])){ echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/login-form”;</script>’; } ?> <script> location.reload(); </script>
Get default value from input field in jquery $(“#name”).on(“change paste keyup”, function() { var default_value = this.defaultValue; });
Use time and date function in php with indian timezone <?php if(function_exists(‘date_default_timezone_set’)) { date_default_timezone_set(“Asia/Kolkata”);} // then use the date functions, not the other way around$date = date(“d/m/Y”);$date1 = date(“H:i
<?php /* Template Name: myfirstpage */ ?> <?php get_header(); ?> <div id=”primary” class=”content-area”> <main id=”main” class=”site-main” role=”main”> <?php // Start the loop. while ( have_posts() ) : the_post(); // Include
wpcodekit Website Designers is one of the best website designing company in punjab 2020. We create beautiful looking, fast and secure websites.We are create professional websites in punjab since 2016.
Website Designed and Developed by Jaspreet Singh