Okay, so I have a parent div that contains nothing but images. I want to select one of these images at random to display. I have display: none for css, so I am using the show() from jQuery. I'm using the DatePicker plugin to grab a random date. I know that the issue is not with the show() and selectors I am using as I isolated them and all the images displayed. Here is my code:
The Images div has three images that are linked properly and will display properly if display: none is removed or the show() is used. I'm sure it's something really simple I just can't figure it out.Code:$(document).ready(function() { var count = $("* > #Images").length; var randomNumber = Math.round(Math.random() * count * DatePickerGetDate); $(this).show(); });


Reply With Quote
Bookmarks