JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app ng-controller="TestCtrl">
<form action="http://www.posttestserver.com/post.php" name="giftform" method="POST" id="giftform" ng-submit="gimme()">
    <input type="text" name="item_name" value="$25 gift certificate" ng-model="model.item_name"/>
    <input type="text" name="amount" value="25.00" ng-model="model.amount"/>
    <button type="submit">Gimme!</button>
</form>

JavaScript

function TestCtrl($scope, $http) {
    $scope.model = {};
    $scope.model.selectedItem = {
        textValue: "$50 gift card",
        denomination: 50
    };
    $scope.model.item_name = "";
    $scope.model.amount = 0.00;
    
    
    $scope.gimme = function() {
        $scope.model.item_name = $scope.model.selectedItem.textValue;
        $scope.model.amount = $scope.model.selectedItem.denomination;        
    }
    
}