获取jQuery中表的前一个或下一个单元格值 [英] get previous or next cell value of table in jquery

查看:85
本文介绍了获取jQuery中表的前一个或下一个单元格值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能存在重复:


see jsfiddle



我通过拖动时间槽来选择时间段。
选择时间段后,我在文本框中输入姓名,然后为该时间段分配患者预约。
我必须在数据库中插入患者姓名(abc),开始时间(上午8:00)和结束时间(上午8:00上午30)。
我怎么才能在jquery中获得这三个值?

解决方案

在我看来,有很多工作要做使时间表看起来很棒,并在各种浏览器上提供良好的用户体验。
也许你可以使用jQuery完整日历( http://arshaw.com/fullcalendar/ )并根据您的需求对其进行定制。



以下是在一天内创建时间事件的演示:

http://arshaw.com/js/fullcalendar-1.5.3/ demos / selectable.html


Possible Duplicate:
How i get appointment time (From time,To time) in jquery

see jsfiddle

i am selecting time slot by dragging on time slot cell. after selecting time slot i enter name in textbox then patient appointment is allotted for that time slot. i have to insert patient name like(abc),start time like(8:00AM 0) and end time like(8:00AM 30) in database. how can i get these three values in jquery.

解决方案

In my opinion, there is a lot of work to make the timetable look great and give a good user experience on various browsers. Maybe you could use the jQuery full calendar ( http://arshaw.com/fullcalendar/) and customize it to fit your needs.

Here is a demo for creating time events on a single day:

http://arshaw.com/js/fullcalendar-1.5.3/demos/selectable.html

这篇关于获取jQuery中表的前一个或下一个单元格值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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