JQuery select 循环

$("#selectId1 option").appendTo("#selectId2");

 

$("#selectId1 option").attr("selected",true);

 

//获得一个表单中特定的id的select数据

var testFor = $("#formId").find("#selectId");

 

$.each(testFor,function(index,SetElement){

 

     if(SetElement.value =="curr"){

          SetElement.disabled = true;

   }

})

 

//序列化表达数据,格式形如:"test1=t1&test2=t2&test3=t3";

//test1,test2,test3是表单里空间的name,后面是value

var data = $("#formId").serialize();

 

$("#add").click(funtion(){

    $("#bran option:selected").appendTo($("#objectVO\\.propertyName"));

});

 

 

$("#add").dbclick(funtion(){

    $("#bran option").appendTo($("#objectVO\\.propertyName"));

});