JQuery for hiding ‘table row’/’Control’ on dropdownlist selected value

Replace ‘DOLLAR’ with ‘$’
DOLLAR(document).ready(function ()
 {
 var trial1 = DOLLAR(“#[idDOLLAR=_ddlWorflowStage] option:selected”).text();
 if (trial1 == “Copy”)
 {
 DOLLAR(“#[idDOLLAR=_ROWreviewers]”).show();
 DOLLAR(“#[idDOLLAR=_ROWmarcomApproval]”).hide();
 DOLLAR(“#[idDOLLAR=_ROWlegalApprovwers]”).hide();
 }
 DOLLAR(“#[idDOLLAR=_ddlWorflowStage]”).change(function ()
 {
 var trial = DOLLAR(“#[idDOLLAR=_ddlWorflowStage] option:selected”).text();
 if (trial == “Copy”)
 {
 DOLLAR(“#[idDOLLAR=ROWreviewers]”).show();
 DOLLAR(“#[idDOLLAR=ROWmarcomApproval]”).hide();
 DOLLAR(“#[idDOLLAR=ROWlegalApprovwers]”).hide();
 }
 if (trial == “Layout”)
  {
 DOLLAR(“#[idDOLLAR=ROWreviewers]”).show();
 DOLLAR(“#[idDOLLAR=ROWmarcomApproval]”).show();
 DOLLAR(“#[idDOLLAR=ROWlegalApprovwers]”).hide();
 }
 if (trial == “Final”)
  {
 DOLLAR(“#[idDOLLAR=ROWreviewers]”).hide();
 DOLLAR(“#[idDOLLAR=ROWmarcomApproval]”).hide();
 DOLLAR(“#[idDOLLAR=ROWlegalApprovwers]”).show();
 }
});
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s