troubleshooting Question

return false must be hit after calling certain command

Avatar of Whing Dela Cruz
Whing Dela CruzFlag for Anguilla asked on
JavaScriptHTMLASPVB Script
10 Comments2 Solutions165 ViewsLast Modified:
Hi Experts, I need to make the "return false", work after calling "document.getElementById("imageid").src="E:\Products\"+picNumber + ".jpg";" As the code below the "return false" will no longer work. Is there any alternatives to keep this thing work?  


<script>
   $(function()
   {
     $('#myTable button.Showbutton').click(function() {
       picNumber = ($(this).closest('tr').find('td:eq(4)').html());
       document.getElementById("imageid").src="E:\Products\"+picNumber + ".jpg";
       return false;
     });
   });
</script>

               <div id="Subnav4">
                  <div>  
                     <img src="" id="imageid" alt="x-men" style="width:250px; height:250px;">
                  </div>
               </div>
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros