正如您在图片中看到的那样。有一个类别列表,动态地用php循环打印。但它没有被选中任何东西。
html代码
<div class="mini_width_left">
<input type="text" name="name" id="quick_name" tabindex="2" placeholder="Name"/>
<input type="text" name="email" id="quick_email" tabindex="4" onblur="quickcheckEmail(this.value);" placeholder="Email" />
<select value="1" name="category" id="category" tabindex="6">
<option selected="selected">Select category</option>
<option value="84">Electronic Weighing Scale Balance & System</option>
<option value="85">Point of sale (POS) System</option>
<option value="86">Self-Service KIOSK</option>
<option value="87">GPS Clock</option>
<option value="96">Milk Analyser</option>
</select>
</div>
<div class="mini_width_right">
<input type="text" name="phone" id="quick_phone" tabindex="3" maxlength="10" onKeyPress="return isNumberKey(event);" placeholder="Phone" />
<input type="text" name="location" id="quick_location" tabindex="5" placeholder="Location" />
<select name="category12" id="category12" tabindex="7">
<option>Select product</option>
</select>
</div>
php code
<select name="category" id="category" tabindex="6">
<option value="1" selected="selected">Select category</option>
<?php foreach($decode as $key => $value) { ?>
<option value="<?php echo $value['category_id']; ?>"><?php echo $value['name']; ?></option>
<?php } ?>
</select>
所有列表即将开始,但未选择任何内容。
答案 0 :(得分:0)
您的网页上有一个javascript更改了您选择的值,请尝试加载没有js的页面