$("#ulWizardTeamMembersList").find('#chk' + ContactInfo[0]).attr("checked", "checked");
countChecked('ulWizardTeamMembersList', 'TeamMembers');
$("#ulWizardContactsList").find('#chk' + ContactInfo[0]).attr("checked", "checked");
countChecked('ulWizardContactsList', 'Contacts');
Asked
Active
Viewed 25 times
0

Dipesh Parmar
- 27,090
- 8
- 61
- 90

dshada
- 1
-
why don't you add more description..? – Dipesh Parmar Feb 23 '13 at 10:46
-
what are the code inside countChecked..? – Dipesh Parmar Feb 23 '13 at 10:47
-
these are the code for Team members list and contacts lists of two popups of team members and contacts in which team members and contacts are listed respectively. This whole code is in a function called open edit wizard and i have to update the team members list and contact list after editing. – dshada Feb 23 '13 at 11:42
1 Answers
0
Try using:
whatever.prop('checked', true);
There's a subtle difference between "properties" and "attributes," and recent versions of jQuery have started enforcing it.
See here: http://api.jquery.com/prop/
And here: .prop() vs .attr()
Hope that helps!

Community
- 1
- 1

Xavier Holt
- 14,471
- 4
- 43
- 56