Hey everyone, I got a little problem. I’m making an asp website, something with organisations and uploading pictures. For the admin-part, I have a select-list with in the visible part the name of the picture (like DC0001.jpg) and the values are the id’s of the corresponding pics in the database.
Next to the list I want a preview of the pic. No problem, I have found a script for that, with the onChange method, without the page reloading. The only problem is, that in order to use that script, the value of the list item must be the picture’s name.
And that’s the problem, I need the value to be the ID of the pic (just a number), for my asp code. So I was wondering if it is possible to retrieve the value which is visible from the list, in javascript?
Any help would be greatly appreciated, thanks in advance.