JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.2.0.min.js"></script>
<div ng-app="myApp">
<div ng-controller="listdata">
<input type="text" data-id="id" ng-change="editItem($event)">
<input type="text" data-id="title" ng-blur="editItem($event)">
<input type="text" data-id="number" ng-blur="editItem($event)">
</div>
</div>
JavaScript
var app = angular.module('myApp', [
'my.controllers'
]);
var controllers = angular.module('my.controllers', []);
controllers.controller('MyController', function($scope) {
});
controllers.controller('listdata', function ($scope, $http) {
$scope.editItem = function (event) {
var fieldTitle = $(event.currentTarget).attr("data-id");
var fieldValue = event.target.value;
console.log(fieldTitle + " : " + fieldValue);
};
})