onClick event
-
I’m having difficulty adding an onClick event when a thumbnail is clicked. I’m trying to get a thumb’s title/alt and then populate that into a text field. My onClick code is:
onclick="document.getElementById('paintingtitle').value='<?php echo $image_row->alt; ?>';"
whereas ‘paintingtitle’ is the ID of the text field I’m trying to populate. I’m editing the BGWViewThumbnails.php file but I’m having trouble getting it to work.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘onClick event’ is closed to new replies.