jQuery-将选定的翻转开关值保存到数据库 [英] Jquery - Saving the selected flip switch value to the database

查看:66
本文介绍了jQuery-将选定的翻转开关值保存到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hallo,
我在Jquery的视图中有以下代码,并且想知道是否有人可以帮助我将所选的翻页开关项保存到数据库中.

Hallo,
I have the following code in my view in Jquery and was wondering if anyone can assist me in saving the selected flip switch item to the database.

<label for="Perishable">Perishable</label>
<select name="slider" id="flip-c" data-role="slider" data-theme="a" class="required">
              <option value="no">No</option>
              <option value="yes">Yes</option>
 </select>



任何帮助将不胜感激.



Any help will be appreciated.

推荐答案

使用jQuery .ajax()调用,然后保存到数据库. http://api.jquery.com/jQuery.ajax/ [
Use the jQuery .ajax() call and then save to the db. http://api.jquery.com/jQuery.ajax/[^]


这篇关于jQuery-将选定的翻转开关值保存到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆