<script type="text/javascript">
$(document).ready(function () {
$("#Button6").on('click',function () {
$("#Image1").attr('src', 'img/s.jpg');
});
});
</script>
<asp:Image ID="Image1" runat="server" Height="284px" Width="284px" src="" style="height:300px;width:300px;left:400px;margin-top:100px;" ClientIDMode="Static"/>
suresh.chaudhari.75
0
Newbie Poster
Recommended Answers
Jump to PostI think you code is fine. I tested it myself. However, I think what is happending in your case is that you have this code within an aspx file and the code is within the <form> element. You may not be aware but a button element within the form block …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.