There are instances when
a content management system may change the HTML code, or
remove the javascript from the HTML. Here is an example of a site that would not let us enter a div tag in the body, and stripped the onchange event from the select box. Below is an example of the code that worked for them.
Make sure to replace the 121 with your assigned ID and include the .js files listed in your generate code page.
<!--Drop Down-->
<p>Select one: <select id="ddlRemedyList5" class="pwdropdown"></select></p>
<!--Article-->
<h1><span id="RemedyTitle"> </span></h1>
<p><span id="RemedyArticleBody"> </span></p>
<script type="text/javascript">// <![CDATA[
$(function () {
LoadDropDown("ddlRemedyList5", 5,121);
LoadArticleFromURL('RemedyArticleBody', 'RemedyTitle', 121);
// Added this function to replace the onchange function from the generated code.
$( "#ddlRemedyList5" ).change(function() {
LoadArticleOnPage('ddlRemedyList5','/symptoms.html', 5, 121);
});
});
// ]]></script>Frequently Asked Questions
Currently, there are no FAQs for this subject
Please leave feedback, tips or questions for other users to see