I habe this part of JQuery. It only effects the ditst td id cnc and no other id's with the same name. Any suggestions how to solve this?
- <script src="http://code.jquery.com/jquery-latest.min.js"
- type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('table#pl td#cnc').hide();
-
- $('#hide_cnc').click(function() {
- if ($(this).attr('checked'))
- {
- $('table#pl td#cnc').show();
- }
- else
- {
- $('table#pl td#cnc').hide();
- }
- });
- });
- </script>