I have the following input elements:
It would be better to just check for the id ending on _BBB by
$("[id$=_BBB]")