Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
value of hidden input is all values of multiple selection !
Old 08-27-2010, 08:53 AM value of hidden input is all values of multiple selection !
Junior Talker

Posts: 1
Name: okokokokokok
Trades: 0
hi ; I want to read the input code which have all the multiple selection but I ve such probleme . that what I do
Quote:
<html> <head> <script language="Javascript1.2" type="text/javascript"> function tout() { var v=""; limit = document.forms['form1'].elements['list1'].options.length; for ( i=0; i<limit && i<99; i++ ) document.forms['form1'].elements['list1'].options[i].selected = true; document.forms['form1'].elements['list1'].options[i].selected = true; v+= document.forms['form1'].elements['list1'].options[i].value; v+='-'; } document.forms['form1'].code.value=v; </script> </head> <body> __________________________________________________ ___ <form id="form1" method="get" > <select id="list1" name="list1" size="13" multiple="multiple"> <option value=ok1> 11222' <option value=ok2> 11222n <option value=ok3> 112t <option value=ok4> 11225 <option value=ok5> 1122jkkj2 <select> <input type=hidden name=code id=code > <input type=submit name=GetAll value=getall Onclick="tout();" > </form> </body> </html>
PHP Code:
 <?php if(isset($_Get['code'])) { $code=$_Get['code'];  echo "msg est =$code";   } ?>

Last edited by (-_-)red sky; 08-27-2010 at 08:56 AM..
(-_-)red sky is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-27-2010, 09:41 AM Re: value of hidden input is all values of multiple selection !
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And your problem with reading multiple selections without needlessly messing about with javascript is??
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-31-2010, 12:52 AM Re: value of hidden input is all values of multiple selection !
Novice Talker

Posts: 5
Name: jackrog
Trades: 0
These information which is can share is really awesome. In all these there are so many things which is really great in these there are multiple selection value can be performed in all these there are so many things which is really great.
__________________

Please login or register to view this content. Registration is FREE
jackrog is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to value of hidden input is all values of multiple selection !
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.63052 seconds with 12 queries