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();
}
{
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();
}
{
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();
}
{
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();
}
{
DOLLAR("#[idDOLLAR=ROWreviewers]").hide();
DOLLAR("#[idDOLLAR=ROWmarcomApproval]").hide();
DOLLAR("#[idDOLLAR=ROWlegalApprovwers]").show();
}
});
No comments:
Post a Comment