Home>
//delegation of things
$(document)
 .on ("input propertychange", "#query", function () {
  var input=$(this) .val ();
  show (input);
 });
 var show=function (txt) {
  var info="listening:<b>" + txt + "</b>
  + "Related search:<br />" + showtags (txt);
  $(". info"). html (info);
 }
 var showtags=function (txt) {
  var tag="";
  if (txt.length) {
   for (var i=0;i<3;i ++) {
    tag +="&span>" + txt + "related" + i + "</span>";
   };
  }
  return tag;
}
  • Previous Latest version of URL replacement regular expression
  • Next Tutorial to start deploying Python applications on Docker