Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > checkbox and values

Reply
Thread Tools

checkbox and values

 
 
pusulv@gmail.com
Guest
Posts: n/a
 
      06-18-2005
Hi,
I got a site whit some checkbox-es whit some value-es.

I really want to extract the value of only checked checkboxes and put
them ni my script bellow.

Here are some of my checkboxes:

> <input type="checkbox" value="a=sweb&" /> Web results
> <input type="checkbox" value="a=simage&" /> Image results


....and from this I only want to get the value from the checked
checkboxes (there are some more than showed abou) an put the valu in
the script bellow:

> function goTo() {
> var searchInput = document.getElementById("searchInput");
> var url = 'http://a9.com/' +
> encodeURI(searchInput.value.replace(/[\s]/gi, '+')) + '?' + ALL-CHECKED-CHECKBOX-VALUES-HERE.value;
>
> }


But how do I do this?

 
Reply With Quote
 
 
 
 
Jc
Guest
Posts: n/a
 
      06-18-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Hi,
> I got a site whit some checkbox-es whit some value-es.
>
> I really want to extract the value of only checked checkboxes and put
> them ni my script bellow.
>
> Here are some of my checkboxes:
>
> > <input type="checkbox" value="a=sweb&" /> Web results
> > <input type="checkbox" value="a=simage&" /> Image results

>
> ...and from this I only want to get the value from the checked
> checkboxes (there are some more than showed abou) an put the valu in
> the script bellow:
>
> > function goTo() {
> > var searchInput = document.getElementById("searchInput");
> > var url = 'http://a9.com/' +
> > encodeURI(searchInput.value.replace(/[\s]/gi, '+')) + '?' + ALL-CHECKED-CHECKBOX-VALUES-HERE.value;
> >
> > }

>
> But how do I do this?


Refer to http://www.jibbering.com/faq/#FAQ4_13

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASPNET CheckBox and a CheckBox in a TemplateField Jason Huang ASP .Net 0 06-29-2007 12:35 AM
DataGrid and embeded Checkbox..How to find if checkbox clicked =?Utf-8?B?RG90TmV0RGV2?= ASP .Net 1 10-06-2006 04:11 PM
disable checkbox list checkbox Vikram ASP .Net 1 01-25-2006 02:59 PM
Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked. Joey Pang ASP .Net Datagrid Control 4 06-13-2005 02:29 AM
Text on Checkbox below the checkbox tshad ASP .Net 0 04-14-2005 11:26 PM



Advertisments