Re: Hi problem with selected value!!
| From: | Jan Rademaker | Date: | Mon, 11 Mar 2002 10:42:58 +0000 |
| Subject: | Re: Hi problem with selected value!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87984@lists.php.net to get a copy of this message | ||
I don't know what the problem is because it works fine here (IE 5.5)
On Mon, 11 Mar 2002, Balaji Ankem wrote:
> Hi friend,
> could u plz. Tell me how to display the slected option value in alert
> box?
>
> Code I wrote is like this.. But I am getting NULL.. Any help would be
> appreciable..
>
> =====================================
> <html>
>
>
> <head>
>
>
> <script language="Javascript">
>
> function check()
> {
> var a;
> alert(document.babai.bongu.value); // Is it correct??
> return true;
> }
>
> </script>
>
>
> </head>
>
>
> <body>
> <form name="babai">
>
> <select name="bongu">
> <option value="11">11</optiuon>
> <option value="12">12</optiuon>
> <option value="13">13</optiuon>
>
> </select>
> <input type="submit" value="check" onclick="check();">
> </form>
> </body>
> </html>
> ============================================
>
> Thanks in advance
> Balaji
>
>