本文主要讲解《dedecms自定义表单用js代替联动类型解决联动问题》的详细内容
<form action="/plus/diy.php" enctype="multipart/form-data" method="post"> <input type="hidden" name="action" value="post" /> <input type="hidden" name="diyid" value="1" /> <input type="hidden" name="do" value="2" /> <table style="width:97%;" cellpadding="0" cellspacing="1"> <tr> <td align="right" valign="top">省份:</td> <td><input type='text' name='province' id='province' style='width:250px' class='intxt' value='' /> </td> </tr> <tr> <td align="right" valign="top">地级市:</td> <td><input type='text' name='city' id='city' style='width:250px' class='intxt' value='' /> </td> </tr> <tr> <td align="right" valign="top">市、县级市:</td> <td><input type='text' name='country' id='country' style='width:250px' class='intxt' value='' /> </td> </tr> <input type="hidden" name="dede_fields" value="province,text;city,text;country,text" /> <input type="hidden" name="dede_fieldshash" value="652e45ca2c11e03bbe75d9f5ab1726ba" /></table> <div align='center' style='height:30px;padding-top:10px;'> <input type="submit" name="submit" value="提 交" class='coolbg' /> <input type="reset" name="reset" value="重 置" class='coolbg' /> </div> </form> |
<form action="/plus/diy.php" enctype="multipart/form-data" method="post"> <input type="hidden" name="action" value="post" /> <input type="hidden" name="diyid" value="1" /> <input type="hidden" name="do" value="2" /> <select id="s_province" name="province"><option value="省份">省份</option></select> <select id="s_city" name="city" style="margin-left:20px;"><option value="地级市">地级市</option></select> <select id="s_county" name="country" style="margin-left:20px;"><option value="市、县级市">市、县级市</option></select> <script type="text/javascript" src="js/area.js"></script> <script type="text/javascript">_init_area();</script> <input type="hidden" name="dede_fields" value="province,text;city,text;country,text" /> <input type="hidden" name="dede_fieldshash" value="652e45ca2c11e03bbe75d9f5ab1726ba" /></table> <div align='center' style='height:30px;padding-top:10px;'> <input type="submit" name="submit" value="提 交" class='coolbg' /> <input type="reset" name="reset" value="重 置" class='coolbg' /> </div> </form> |
本网刊登的文章均仅代表作者个人观点,并不代表本网立场。文中的论述和观点,敬请读者注意判断。
2021-02-24
2021-02-08
2021-02-08
2021-02-08
2021-02-08
2021-02-08
2021-02-24
2021-02-08