html巧⽤data-for藏⾃定义属性
<div class="form-ele">
<label for="week" class="label col-1">显⽰⽇期</label>
<div class="form-inner col-10">
<div class="ele-radio" data-for="week" data-double="1">
<a href="javascript:;" value="1" <?php echo !isset($data) || strpos($data['display_week'], '1') !== false ? 'class="now"' : ''; ?>>周⼀</a>
<a href="javascript:;" value="2" <?php echo !isset($data) || strpos($data['display_week'], '2') !== false ? 'class="now"' : ''; ?>>周⼆</a>
<a href="javascript:;" value="3" <?php echo !isset($data) || strpos($data['display_week'], '3') !== false ? 'class="now"' : ''; ?>>周三</a>
<a href="javascript:;" value="4" <?php echo !isset($data) || strpos($data['display_week'], '4') !== false ? 'class="now"' : ''; ?>>周四</a>
htmlradio多选怎么用<a href="javascript:;" value="5" <?php echo !isset($data) || strpos($data['display_week'], '5') !== false ? 'class="now"' : ''; ?>>周五</a>
<a href="javascript:;" value="6" <?php echo !isset($data) || strpos($data['display_week'], '6') !== false ? 'class="now"' : ''; ?>>周六</a>
<a href="javascript:;" value="0" <?php echo isset($data) && strpos($data['display_week'], '0') !== false ? 'class="now"' : ''; ?>>周天</a>
</div>
<input type="hidden" name="display_week"  id="week"  value="<?php echo isset($data) ? $data['display_week'] : '123456'; ?>" required />
</div>
</div>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。