XModPro

Help with jquery

Special Project Special Project asked Jan 23, 2019
Active Jan 24 · Viewed 2257 times
<p><br>Looking for some jquery assistance. I used jquery years ago with xmod pro to show/hide a question based on the response to the previous question. It's still live on a site and working well. The code is below: </p> <p class="xmp-form-row"><label cssclass="xmp-form-label" for="RadiatingYN1">Radiating</label><br><dropdownlist datafield="RadiatingYN1" datatype="string" id="RadiatingYN1" nullable="true"><listitem value=" ">Select One</listitem><listitem value="Yes">Yes</listitem><listitem value="No">No</listitem></dropdownlist> </p><label cssclass="xmp-form-label" for="Radiating1">Radiating</label><listbox datafield="Radiating1" datatype="string" id="Radiating1" nullable="true" rows="7" selecteditemsseparator="," selectionmode="Multiple" width="125"><listitem value="head">head</listitem><listitem value="neck">neck</listitem><listitem value="upper back">upper back</listitem><listitem value="mid back">mid back</listitem><listitem value="lower back">lower back</listitem><listitem value="chest">chest</listitem><listitem value="shoulder">shoulder</listitem><listitem value="arm">arm</listitem><br><listitem value="elbow">elbow</listitem><listitem value="wrist">wrist</listitem><listitem value="hand">hand</listitem><br></listbox> <p><scriptblock blocktype="StartupScript" registeronce="True" scriptid="showradiating1"><br><br></scriptblock> </p> <p>So just to be clear the above works perfectly. I'm now trying to replicate the functionality on a new site and I it doesn't work. It doesn't open the field "arthritisdetails" when I select yes for "arthritis" I think the issue is this part here but I'm not sure???('#dnn_ctr660_XModPro_ctl00_ctl00_ctl00_Arthritis') </p> <p>Any help would be spectacular. Thanks in advance for helping me to understand where I've gone wrong. </p> <p>Here is the code on the new site: </p> <p class="xmp-form-row"><label cssclass="xmp-form-label" for="Arthritis">Arthritis</label><br><dropdownlist datafield="Arthritis" datatype="string" id="Arthritis"><listitem value=">Select One</listitem><listitem value=" yes"="" ""="" "="">Yes</listitem><listitem value="No">No</listitem></dropdownlist> </p> <p><br><br><label cssclass="xmp-form-label" for="ArthritisDetails">Arthritis Details</label> </p><textarea datafield="ArthritisDetails" datatype="String" height="100" id="ArthritisDetails" nullable="true" width="300"></textarea> <p><br><br> </p> <p><scriptblock blocktype="StartupScript" registeronce="True" scriptid="showarthritisdetails"><br><br></scriptblock> </p>

3 Answers

Loading answers...