javascript - Mottie keyboard when click on any button trigger the input box -


i using mottie keyboard https://github.com/mottie/keyboard project.i trying trig keyup event of input box whenever button clicked in virtual keyboard.

below code...

<div class="block" id="autocomplete">    <input class="text" type="text" placeholder="name" ng-keyup="searchbyname()" ng-model="uname" name="uname" autocomplete="off"><i class="fa fa-keyboard-o icon" aria-hidden="true"></i> </div> 

below keyboard js code

$('.text').keyboard({      layout: 'qwerty' }); 

below keyup function searchbyname()

csi.controller('searchctrl', ['$scope', function($scope)  {      $scope.searchbyname=function(){       var uname=angular.element('.uname').val();      alert(uname)  } 

so, i'm not able uname in function. kindly suggest me tips or tell me i'm misleading here. thank in advance


Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -