Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/knockout/2.2.0/knockout-min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
  Name: <input type="text" data-bind="value: Name, valueUpdate:'afterkeydown'" />
  Age: <input type="text" data-bind="value: Age, valueUpdate:'afterkeydown'" />
  
  <p class="ui-widget ui-state-highlight">Change the age first and see the computed function is not evaluating. Now change the Name and now you will get the alert "send", it means computed function evaluated.</p>
  <p class="ui-widget ui-state-highlight">Now if you will change the age than also computed function evaluates which is not the behaviour i am expecting.</p>
  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers