当我找到程序 Donor Refund 时,我需要访问具有部分 id “clinic_base_fee_fresh”的输入文本框
$("th[id*='programme_details']").each(function() {
var programeName = $(this).html();
if(programeName.indexOf('Donor') > -1){
// find the first input with clinic_base_fee_fresh ??
if($('#programme_details > input:first').attr('id') == 'clinic_base_fee_fresh')
{
// then select that text box
// apply the value "set"
//??
$('that textbox').val(12);
}
console.log(programeName);
}
});