Hi, we are getting closer to understand more about XMod Pro, now we need help to know what we are doing wrong to have the option to HIDE and SHOW, we have the source code as follow:
<div>
<label for="dnn_ctr1717_XModPro_ctl01_ctl00_ctl00_CountryStatus1">
Status
</label>
<select name="dnn$ctr1717$XModPro$ctl01$ctl00$ctl00$CountryStatus1" id="dnn_ctr1717_XModPro_ctl01_ctl00_ctl00_CountryStatus1">
<option value="">
---Please select---
</option>
<option selected="selected" value="0">Active</option>
<option value="1">Not Active</option>
</select>
<span id="dnn_ctr1717_XModPro_ctl01_ctl00_ctl00_ctl12" style="display:none;">Please Select Status</span>
</div>
And we have the jQuery as follow:
<xmod:jQueryReady>
$("#dnn_ctr1717_XModPro_ctl01_ctl00_ctl00_CountryStatus1").ready(function() {
var valor = $(this).val();
if (valor = "0")
{ $("#dnn_ctr1717_XModPro_ctl01_ctl00_ctl00_CountryDate").hide();}
else
{ $("#dnn_ctr1717_XModPro_ctl01_ctl00_ctl00_CountryDate").show();}
});
</xmod:jQueryReady>
Right now is hiding no matter the value we set in the field, what we need is when we select ACTIVE hide the field, any other selection show the field