mootools 对比 jquery选择器

   window.addEvent('domready', function() {
      $('select-city').addEvent('click',function(){  //mootools中id选择器
        $$(".not_morelist").setStyle('display', 'block');;  //mootools中class选择器
      });
    });

 

     jquery中操作如果是:$("textarea[name='city']").val(value);
     则在mootools中如下:$$("textarea[name='city']").setProperty('value', value);

 

  //mootools中得到所有选中的checkbox的值

  $$("input[name=sc]").each(function(e){
    if($(e).getProperty("checked")) {
      console.log($(e).getProperty('value'));
    }
  });

 

原文地址:https://www.cnblogs.com/fanglin/p/2537099.html