This topic is locked

Hide whole row based on selection

3/27/2014 9:36:31 AM
PHPRunner General questions
P
Phil_G author

Hi

I am trying to get this to work for me, b[size="2"]ut I'm having no luck.[/size]

I have a on change function which otherwise works, m[size="2"]y code inside the function is:[/size]



if (this.getValue()==3) { ctrlcomplplusnotes.hide();ctrlcomplplusnotes.removeValidation("IsRequired");

ctrlcomplminnotes.hide();ctrlcomplminnotes.removeValidation("IsRequired");

ctrlcomplnotdonenotes.hide();ctrlcomplminnotes.removeValidation("IsRequired");

$("input[id^='Address']").parents('tr:eq(0)').hide();


The first 3 lines hide the controls correctly but I would like to hide the whole line of the table. The last line of code has no effect. What am I doing wrong?
Thanks
Philippe