javascript - How to select different option values ​​based on the values ​​passed from the background in html select
淡淡烟草味
淡淡烟草味 2017-06-28 09:25:35
0
5
1114

Code:

 <tr>
    <th>空间性质</th>
     <td>
         <input type="hidden" id = "class" value="{$post.post_class}"/>

         <select class="form-control" name="post[post_class]" id="class2" value="{$post.post_class}">
         <option value="0" id="op1">出售</option>
         <option value="1" id="op2">出租</option>
         </select>
         </td>
 </tr>

Display different option values ​​​​according to the value of value={$post.post_class}, value only has two values ​​​​0 and 1. TKS

淡淡烟草味
淡淡烟草味

Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!