Hello!
I'm not sure if this is a right place to ask this, but I hope somebody can help me.
I have a problem like this: I have a form with a dropdown list in it. Here's the code:
<SELECT NAME=taytakurssi>
<OPTION><?php echo $kurssi ?>">
<OPTION VALUE="TVS">TVS
<OPTION VALUE="VPK">VPK
</SELECT>
The first option means that the value is taken from the database and shown in the field. This form is meant to be used as login form as well as for updating data. So, if you login, you select either TVS or VPK (then the first option is not available). Then, if you want to update the data, the values will be taken from the database and put into their own places in the form.
And then, I have a javascript code that checks if the fields are filled. The problem is that if you're trying to update, and the values to "taytakurssi" are taken from the db, the javascript code doesn't "understand" that there is a value. The problem occurs only with this dropdown list.
Have any idea what I mean?