Current location: Hot Scripts Forums » General Web Coding » JavaScript » check box value


check box value

Reply
  #1 (permalink)  
Old 03-05-04, 07:43 PM
seraphima seraphima is offline
New Member
 
Join Date: Mar 2004
Location: alaska
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question check box value

I have this order form, and I am trying to get the original payment info to automatically copy over to the shipping information using the check box and javascript below. It does not work..nothing copies over. what did I do wrong?
Is there another way??

Check to copy payment information to shipping information: <input type="checkbox" name="copy"
onClick="javascript:ShipToBillPerson(this.form);" value="checkbox">


Ser

Last edited by seraphima; 03-05-04 at 07:46 PM.
Reply With Quote
  #2 (permalink)  
Old 03-09-04, 05:45 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
the keyword this refers to the checkbox which has the property checked.
Try replacing this.form with this.checked and it should work (if ShipToBillPerson() expects a boolean value as argument of course)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Check this out! TMX General Advertisements 0 02-08-04 02:51 AM
Image IP Logger - Check it out stingraze Perl 0 12-11-03 12:22 AM
Gallery script, can someone check the programming? Pvasoldier PHP 10 09-25-03 05:43 PM
How to check mail() MCM PHP 2 08-14-03 06:41 AM


All times are GMT -5. The time now is 02:13 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.