I think I worded my question wrong maybe. Or i am not understanding your response
The function itself works fine when a user selects yes it works wonderfully and the rows display.
however upon submit it stores that value in the database. the event to display the rows is an onchange event. and when a user returns to that page it already has the yes value therefore the onchange event never happens (because the user has no need to select yes again) and the hidden rows never display.
What i would like is for it to run the function on load and display any rows where the value is already yes.
if i just misunderstood your answer then I apologize