Tags » JQuery

CRUD OPERATION ON GOOGLE SHEETS | DATABASE USING HTML ,JQUERY, APP SCRIPT

1. App Script

Step 1 : Create new app script project. Click here to create App Script.

Step 2 : Copy and paste the below script which handles two attributes (id,name). 1,188 more words

TUTORIAL

JavaScript, jQuery, Ajax Interview Questions : Part 1 | Code Factory

Donate : Link

Medium Blog : Link

Applications : Link

1. What is JavaScript?

  • JavaScript is a scripting language. It is different from Java language. It is object-based, lightweight, cross-platform translated language.
1,423 more words
Code Factory

Get file size by javascript

<div class="form-group">
      <label for="files">Sector Image</label>
            <h5 id="size">
               <small>Max-Size - 750kb</small> 
               <span></span>
            </h5>
            <input type="file" class="form-control input-sm" 
             name="cover_image" accept="image/*" id="cover_image">
            <p class="help-block"></p>
</div>


<script type="text/javascript">
$(document).ready(function() {       
    $('#cover_image').change(function() {
        var s=(this.files[0].size);
        var image_size = s/1024; //kb
        if (image_size>750) {
            $("#size span").html('<span style="color:red;"><i class="fa fa-times-circle"></i>'+Math.round(image_size)+'kb </span>');
        }
        else
        {
            $("#size span").html('<span style="color:green;"><i class="fa fa-check-circle"></i></span>');  
        }  
    });
});
</script>

Javascript

A nifty jQuery function called trigger()

jQuery is a simple and efficient javascript library. I do most of the front-end related magic using jQuery & CSS alone, with minimal intervention from server side. 679 more words

Drupal

How to use jQuery in WordPress?

jQuery(document).ready(function($){

// Code goes here


});
Jquery

JQuery custom form validation

$('#regForm').submit(function() {
  var ret = true;
  $(this).find('input').each(function() {
      if ($(this).val() == '') {
         $(this).addClass('err');
         ret = false;
      } else {
         $(this).removeClass('err');
      }
  });
  return ret;
});

How to convert Currency to Double in JavaScript/jQuery

function convertToDouble(currency){ 
    var temp = currency.replace(/[^0-9.-]+/g,""); 
    return parseFloat(temp);     
}
var varCost = convertToDouble('$2,144.44');
Console.log(varCost);

Output: 2144.44

JavaScript