jquery - Clicking on a cell in a table -
I am using Bootstrap and JQUERY to create an app that uses the "simple" room. This is a table, columns are on weekdays (Mon - Sat) and rows, time (8:00 am, 8:30 am, 9:00 am, etc.). Note: This is not a calendar, I do not need dates or months
Each room is empty or for the time being, the room is being used, it can display information about this. I am able to click on any cell to update or edit my information.
Is there any way to do this, (ie click on cell)? I'm just getting information to click on a line.
You can do something like this,
Actually you have a Div
which will work as your new information source.
HTML
& lt; Div id = "newInfo" & gt; & Lt; Text area & gt; & Lt; / Text field & gt; & Lt; Button & gt; Submit & lt; / Button & gt; & Lt; / Div & gt; ("Click", function () {$ ('# newInfo'). (Show) () ( jQuery $ ('td'). Data ($ (this));}); $ ('button'). ('Click', function () {$ that = $ ('# newInfo'). Data (); $ that.text ($ ( $ (''); $ ('# NewInfo'). Hide ();});
/ H2>
Comments
Post a Comment