I have working component using XSLT functionality, it has DCR input, 2 javascript function and 3 jquery functions and 1 jquery include file. Everything working fine.
I would like to remove all this code and put in seperate XSLT file. So that I could update only XSLT file with future updates.
But my Javascript/Jquery is not working. Is there any special thing we have to do for Jquery/JS code block? and also for including script file?
Please advice!
Option 1: This is for including code
<script type="text/javascript" language="JavaScript">
<xsl:comment></xsl:comment>
Option 2: This is for including code
<script type="text/javascript" language="JavaScript">
<![CDATA[ .....
Option 3: This is for including file
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"> </script>
Am I using in correct way?
My JS code is in between the HTML code.