jQuery Help In Dreamweaver -


i'm new html/jquery , struggling solve problem. goal make when click box (#boxone), image appears in different box (#boximage).

i'm not sure if there error in code or problem dream weaver loading it. appreciated!

 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">  $(document).ready(function() {     $('#boxone').click(function(){         $("#boximage").attr('src',"http://i.minus.com/ipbqanenxrxtb.png");     return false;     }); });  </script> 

you need wrap jquery code inside own <script> tag:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>  <script type="text/javascript">     $(document).ready(function() {         $('#boxone').click(function(){             $("#boximage").attr('src',"http://i.minus.com/ipbqanenxrxtb.png");             return false;         });     }); </script> 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -