1. 程式人生 > >EasyUI動態改變輸入框width

EasyUI動態改變輸入框width

function changeEUIBoxWidth(id, width){
	$('#'+id).parent().find($('span:eq(0)')).css('width',width+'px');
	$('#'+id).parent().find($('input[type="text"]')).css('width',(width-8)+'px');
}