No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Salam... I need to get value that has been selected from combobox .. the values in combobox is taken from column's contents of one of tabel in database..so once i write if x=combobox.selectedvalue..i got error that i Additional information: Operator is not valid for type 'DataRowView' and string | |
body> <form name="wfwd"> <select name="wcode" onChange="disp(document.wfwd)"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <?php [B]$id=$_get['id'];[/B] [B]echo $id;[/B] ?> </form> </body> <script> function disp(Object) { var index=Object.wcode.selectedIndex; var value=Object.wcode.options[index].value; var item=Object.wcode.options[index].text; [B]document.wfwd.action='worksfwdtogovt.php?id=item';[/B] [B]document.wfwd.submit();[/B] }//disp can i return the value of item into the form using this javascript. i want to echo … | |
How can i get a selected value from combo box ? i used combo.selectedItem.But it is not working.will u pls give me a solution for this |