泛微 ecology 組件事件

<script type="text/javascript">
    jQuery(function(){
        //主表的組件
        
        //bind live on click 
        jQuery("#field").live("change",function(){
            alert(jQuery(this).val());
        });
        
        //IE  onpropertychange 瀏覽按鈕 type=hidden
        jQuery("field").bindPropertyChange(function(obj){
            alert(jQuery(obj).val());
        });
        
        //明細添加綁定事件
        
        jQuery("indexnum0").bindPropertyChange(function(obj){
            var index = parseInt(jQuery(obj).val())-1;
            jQuery("#field_"+index).bindPropertyChange(function(obj1){
                alert("Index ="+index+" "+jQuery(obj).val());
            };
        }); 
    });
</script>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章