Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Unable to trigger a script in html webresource

$
0
0
Hi,

I am working on a html web resource which has a dropdown in it. On change of the dropdown value, I am trying to trigger a script but nothing happens. I did try to debug but script won't trigger in the first place. I have downloaded the latest jquery.

Is this the right way of doing so? Thanks for any suggestions.

<html><head>
<script src="new_jquery_1.9.1_latest.js" type="text/javascript"></script> 
     <script type="text/javascript"> 
         $(document).ready(function () { 
             $("#Onlyoption").change(function () { 
                 debugger; 
alert("triggered");
                            }); 
         }); 
             </script> 
<meta charset="utf-8"></head>

<body>
&nbsp; <font color="#444444" face="Segoe UI" size="2" font="">&nbsp;Time In:</font>   
<select id="Onlyoption"> 
         <option value="0000">xxxx</option> 
 <option value="0000">yyyy</option> 
 <option value="0000">zzzz</option> 
             </select></body></html>



Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>