Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-21-2009, 04:28 AM   PM User | #1
dniwebdesign
Regular Coder

 
dniwebdesign's Avatar
 
Join Date: Dec 2003
Location: Carrot River, Saskatchewan
Posts: 838
Thanks: 15
Thanked 9 Times in 9 Posts
dniwebdesign is an unknown quantity at this point
Question Checkbox problems...

Alright... everything works fine. Almost.

Code:
  $('#findInvoice').click(function(event) {
	alert($('#'+netID+'').attr('checked')+" "+$('#'+netID).is(':checked'));
	if($('#'+netID).is(':checked')==false) {
		 var netID = $('#netID').val();
		 $('#'+netID).parent().parent().toggleClass('table_select');
		 $('#'+netID).attr('checked',true);
	 }
	 else {}
  });
Okay... so I things set up so I enter a value into a text input then it finds the specific table row and check box... checks the box and highlights the row. Perfect, sort of.

I want to know if the check box is checked but every method I try always returns false, or undefined. At current time if I enter the value into the box, it leaves the check box checked but un-highlights the row. I do not want it to do this. If I want it unselected, I want to click on it. Any idea why I cannot find if the check box is selected.

Edit: As usual, I find the problem after I post on here. :\
__________________
Dawson Irvine
CEO - DNI Web Design
http://www.dniwebdesign.com

Last edited by dniwebdesign; 12-21-2009 at 04:52 AM..
dniwebdesign is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:48 AM.


Advertisement
Log in to turn off these ads.