正在显示
1 个修改的文件
包含
19 行增加
和
2 行删除
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | <div class="form-group"> | 33 | <div class="form-group"> |
34 | <label class="control-label col-xs-12 col-sm-2">{:__('Xi_id')}:</label> | 34 | <label class="control-label col-xs-12 col-sm-2">{:__('Xi_id')}:</label> |
35 | <div class="col-xs-12 col-sm-8"> | 35 | <div class="col-xs-12 col-sm-8"> |
36 | - <input id="c-xi_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[xi_id]" type="text" value=""> | 36 | + <input id="c-xi_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[xi_id]" type="text" value="" onfocus="set_next_input(this);"> |
37 | </div> | 37 | </div> |
38 | </div> | 38 | </div> |
39 | <div class="form-group"> | 39 | <div class="form-group"> |
@@ -65,7 +65,7 @@ | @@ -65,7 +65,7 @@ | ||
65 | <div class="form-group"> | 65 | <div class="form-group"> |
66 | <label class="control-label col-xs-12 col-sm-2">{:__('Zhao_id')}:</label> | 66 | <label class="control-label col-xs-12 col-sm-2">{:__('Zhao_id')}:</label> |
67 | <div class="col-xs-12 col-sm-8"> | 67 | <div class="col-xs-12 col-sm-8"> |
68 | - <input id="c-zhao_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[zhao_id]" type="text" value=""> | 68 | + <input id="c-zhao_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[zhao_id]" type="text" value="" onfocus="set_next_input2(this);"> |
69 | </div> | 69 | </div> |
70 | </div> | 70 | </div> |
71 | <div class="form-group"> | 71 | <div class="form-group"> |
@@ -132,3 +132,20 @@ | @@ -132,3 +132,20 @@ | ||
132 | </div> | 132 | </div> |
133 | </div> | 133 | </div> |
134 | </form> | 134 | </form> |
135 | +<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script> | ||
136 | +<script> | ||
137 | + | ||
138 | + function set_next_input(obj) { | ||
139 | + //改变下面这个框的数据源 | ||
140 | + console.log('洗车'); | ||
141 | + $("#c-xi_id_text").data("selectPageObject").option.data = 'user/index?pid=1'; | ||
142 | + } | ||
143 | + | ||
144 | + | ||
145 | + function set_next_input2(obj) { | ||
146 | + //改变下面这个框的数据源 | ||
147 | + console.log('找车'); | ||
148 | + $("#c-zhao_id_text").data("selectPageObject").option.data = 'user/index?pid=2'; | ||
149 | + | ||
150 | + } | ||
151 | +</script> |
-
请 注册 或 登录 后发表评论