선택 데이터 확인

2783 단어 데이터

function checkexport()
	{    
		
		var checkrows=document.getElementsByName("ids");
		var candelete=false;
		for(var i=0;i<checkrows.length;i++)
		{
			if(checkrows[i].checked==true)
			{
				candelete=true;
				break;
			}
		}	
		if(!candelete)
		{
			alert(' !');
			//alert('Please select the data, and then delete!');
			return false;
		}
		return confirm(" ?");
	}

	$(document).ready(function(){
		$("#send").click(function() {
			var str = "";

jquery , jquery 

			$('input[type=checkbox][name=people]:checked').each(function() {
				str += $(this).val() + ",";
			});




			str=str.substring(0, str.length-1);
			if(str.length==0)
			{
			  alert(" ");
			  return;
			}
			else{
			window.opener.document.getElementById("36people").value = str;
			}
			window.opener = null; // 
			window.close(); // 
		});
		

	})


 , 
$(document).ready(function() {

$("#CheckedAll1").click(function(){
            if(this.checked){                 // 
                  $('input[type=checkbox][name=items1]').attr("checked", true );
            }else{                                
                 $('input[type=checkbox][name=items1]').attr("checked", false );
            }
     });

 , 
$('input[type=checkbox][name=items3]').click(function(){
               var flag=true;
                $('input[type=checkbox][name=items3]').each(function(){
                    if(!this.checked){
                         flag = false;
                    }
               });
               if( flag ){
                     $('#CheckedAll3').attr('checked', true );
                }else{
                     $('#CheckedAll3').attr('checked', false );
               }
     });

 

var selectstr=window.opener.document.getElementById("gzjbs").value;
        var strs = selectstr.split(","); 
		for(var i=0;i<strs.length;i++)
		{
		   $('input[type=checkbox]').each(function() {
		   
				if($(this).val()==strs[i])
				{
				  $(this).attr("checked","true");
				}
			});
		}


})

좋은 웹페이지 즐겨찾기