allowances/static/allowances.js

13 lines
336 B
JavaScript
Raw Normal View History

2013-03-05 23:26:57 -08:00
$(function() {
$(".controls").hide();
$(".child").click(function(e) {
2013-03-05 23:26:57 -08:00
$(this).next(".controls").toggle();
});
$(".btn").click(function(e) {
2013-03-08 22:28:24 -08:00
var target = $(this).val();
var req = $.get(target, function(data) {
$("." + data["name"]).next().text(data["amount"]);
});
});
2013-03-05 23:26:57 -08:00
});