Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Javascript (http://www.velocityreviews.com/forums/f68-javascript.html)
-   -   checkbox and values (http://www.velocityreviews.com/forums/t918720-checkbox-and-values.html)

pusulv@gmail.com 06-18-2005 06:52 PM

checkbox and values
 
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?


Jc 06-18-2005 09:06 PM

Re: checkbox and values
 
pusulv@gmail.com 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



All times are GMT. The time now is 02:45 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.