日期:2014-05-16  浏览次数:20572 次

struts 2 class ajax
1.  空格              value

2.  hidden       hide all
3.  areaSelect   title value
4.  fromText     value

--------------------------
<input type="text" name="member.username" class="formText {required: true, minlength: 2, maxlength: 20, username: true, remote: 'member!checkUsername.action', messages: {remote: '用户名已存在!'}}" />
	// 地区选择菜单

---
	<input type="text" name="receiver.name" class="formText {required: true, messages: {required: '请输入收货人姓名!'}}" value="${(receiver.name)!}" />
--

---------------------------------

--------------------
 <input type="text" name="receiver.areaPath" class="areaSelect  {required: true, messages: {required: '请选择地区!'}, messagePosition: '#addressMessagePosition'}" value="${(receiver.areaPath)!}" />
									<span id="addressMessagePosition"></span>

   var city =   $(".areaSelect").lSelect({
		url: "${base}/shop/area!ajaxChildrenArea.action"// Json数据获取url
	});

--------------------------------------------

------------------------

---------------------------------------