Skip to content

Commit d61b1c2

Browse files
committed
fixed bug where age range for still alive was defaulting to previous selection for another family member
1 parent abf1d04 commit d61b1c2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

js/fhh.js

+11
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,17 @@ function start()
249249

250250
$("#is_person_alive").on("change", function () {
251251
if ($("#is_person_alive").val() == 'alive') {
252+
$("#is_person_alive").val('alive');
253+
$("#age_determination").val('date_of_birth');
254+
$("#age_determination_text").attr("placeholder","mm/dd/yyyy")
255+
$("#age_determination_text").show();
256+
257+
// $('#age_determination_text').show().val(family_member.date_of_birth);
258+
$('#estimated_age_select').hide();
259+
$("#person_is_alive").show();
260+
$("#person_is_not_alive").hide();
261+
// $("#age_determination").val('date_of_birth');
262+
252263
$("#person_is_alive").show();
253264
$("#person_is_not_alive").hide();
254265
} else if ($("#is_person_alive").val() == 'dead') {

0 commit comments

Comments
 (0)