- I'm just starting to learn about jQuery.
- My issue is that I want an image to show in the first column of a row when a checkbox is clicked.
- Although I've written the click functionality, it doesn't seem to be working as expected.
- Below is the code snippet:
$("#checkIDGrid").click(function() {
alert("I am here");
var img = $('<img />', {
id: 'Myid',
src: 'https://thumbs.dreamstime.com/z/pixel-perfect-web-development-flat-icons-set-website-programming-process-webpage-coding-user-interface-creating-45297890.jpg',
alt: 'MyAlt'
});
img.appendTo($('<tr>'));
});