Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    845
    Thanks
    15
    Thanked 10 Times in 10 Posts

    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. :\
    Last edited by dniwebdesign; 12-21-2009 at 04:52 AM.
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •