HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
condition in side the check box...actual requirement
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
nmanne



Joined: 12 Feb 2008
Posts: 4

PostPosted: Tue Feb 12, 2008 9:24 pm     condition in side the check box...actual requirement Reply with quote

actually my requirement is...in my table for a td i am getting an value as false...i need to replace that false with a check box(dat to checked)...(in short if it is false it must check the check box..where the td values are dynamic..(ie i have kept dat table in side the for loop so dat the td's and tr's will be dynamically generated according to the data..) )

currently i am using like this...but it is not working
<input id="checkbox" name='+i+' type="checkbox" '+this.couponArray[i].special=="false"?checked:unchecked+'onChange="doChange(this)" >...any body got what i said ???.... if so kindly help me out....
nmanne



Joined: 12 Feb 2008
Posts: 4

PostPosted: Tue Feb 12, 2008 10:09 pm     here is the crack Reply with quote

<input id="checkbox" type="checkbox"' + (this.couponArray[i].special=='false'?'':'checked')+' onChange="doChange(this)"> and it works....
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial