parent().hide() method is hiding only the value in the text box not the space
Hi All,
I have 10 questions and 10 answers in form applet under SR. All are text boxes as am getting the data into that from admin screen based on product associated to that SR.
And am hiding Question and answer text box when question is blank like below. But when hide i still see full empty space. How can i get rid off that? Please help.
if(ValQuestion1==="")
{
$( "[name='" + Question1.GetInputName() + "']" ).parent().hide();
$( "[name='" + Answer1.GetInputName() + "']" ).parent().hide();
}
if(ValQuestion2==="")
{
$( "[name='" + Question2.GetInputName() + "']" ).parent().hide();
$( "[name='" + Answer2.GetInputName() + "']" ).parent().hide();
}
if(ValQuestion3==="")
{
$( "[name='" + Question3.GetInputName() + "']" ).parent().hide();