How to composite two samples into the one

by gurkavcu

HTML

<script src="https://github.com/jquery/jquery-tmpl/raw/master/jquery.tmpl.js"></script>
<script src="https://github.com/SteveSanderson/knockout/raw/master/build/output/knockout-latest.debug.js"></script>
<a href="#" id ="call" >CALL</a>

CSS

input { width: 75px; }

JavaScript

$(document).ready(function(){
    
    $("#call").click(function() {
        alert('EEEEEEEEEEEE');
    });
    
  //Create a new jQuery.Event object without the "new" operator.
  var e = jQuery.Event("click");

  // trigger an artificial click event
  jQuery("#call").trigger('click');
    
    
});