collapse/expand table row

I have a PHP application, that displays information in a table format, each rows contains specifica information which are dynamically fetched from the MySQL database. i am looking for a way to make these individual rows display more information, meaning i want to implement a functionality where in when i click on a row it expands to show more information, and when i click on the row again, it should collapse. I knw its possible in Javascript, but am very new to it, and i dont knw how to go about doing it. I would really appreiciate if somebody could give help me out.

Smilar Topics

  • How do I make this script expand / collapse / expand table headers?

    everyone, I am just learning the basics of javascript, and am finding myself stuck. Any help is greatly appreciated.So, I'm using the below javascript for expand / collapse text, it suffices well. However it will only collapse either table rows, or table data cells. Now, I know that these tags{var t ...

  • jQuery table row slide up/down

    I'm using some ajax to "expand" an item in a table, using the .after functionality of a table row, and similarly the .remove functionality to "collapse" those rows. This works fine.However, I would like to gold plate it a little bit: I'd like the rows to slide down and slide up o ...

  • jQuery How do I attach a toggle to a checkbox. I want a table row to fade out/in, when a checkbox is toggled

    I have created a table, at the end of each table row is a checkbox.When the user selects the checkbox, that row will fade out to give theillusion its now disabled. When the checkbox is unchecked I want therow to fade back.Can this be done? I have managed to do it rather crudely in thefollowing examp ...

  • jQuery Assigning an animation toggle to a checkbox to fade a table row in/out

    I have created a table, at the end of each table row is a checkbox.When the user selects the checkbox, that row will fade out to give theillusion its now disabled. When the checkbox is unchecked I want therow to fade back.Can this be done? I have managed to do it rather crudely in thefollowing examp ...

  • jQuery Expand a row when clicking only on an image

    I'm testing the Jexpand plugin (expand table rows) :http://www.jankoatwarpspeed.com/examples/expandable-rows/and i would like to know what i have to modify to expand/collpase rows only when i click on the left arrows picture (not by clicking everywhere on the row) please ?$("#report tr:odd").addClas ...

  • Table row animation

    In an effort to learn at least a little about JS and JQ, I thought I'd load up JQ and try some of the animation stuff. I have an html table with some rows hidden (display:none) and thought it would be cool to animate them opening up when a little plus-sign icon is clicked.I have the fundamentals of ...

  • Adding and Deleting table row style

    I currently have a script that adds and deletes table rows. However, I do not know how to change the code to make the new rows have the same style as the default row (the row style id needed to add is named "even" which shows the grey border etc...). Does anyone know how to make this chang ...

  • Javascript Table 'Row Hover' & Confirmation

    Hi... I hope someone can help me here.I'm using javascript to change the colour of a table row when a user hover there mouse over it, also, when they click anywhere on the row it takes the user to a DETAILS page.But each row also contains a link to delete the record.. It asks a javascript confirmati ...

  • Adding and Deleting table row style

    I currently have a script that adds and deletes table rows. However, I do not know how to change the code to make the new rows have the same style as the default row (the row style id needed to add is named "even" which shows the grey border etc...). Does anyone know how to make this chang ...

  • jQuery how do i use display: table-row; instrad of display: block; with the show() effect on table rows?

    <html><head><style>P{margin:0px;padding:0px}body{FONT-SIZE: 10pt;FONT-FAMILY:Tahoma}</style></head><body><div style="text-align: left;">Thanx that did the trick.also importand to add is that a table MUST HAVE <tbody> and </tbody> :) if you don`t ...

  • jQuery how do i use display: table-row; instrad of display: block; with the show() effect on table rows?

    <html><head><style>P{margin:0px;padding:0px}body{FONT-SIZE: 10pt;FONT-FAMILY:Tahoma}</style></head><body><div style="text-align: left;">Hey,well the title really says it all..i`m trying to add/delete table rows with jquery and that`s working.. the bad thing ...

  • jQuery am I in the last table row?

    Hi, I have this HTML code<table>    <tr><td id="1" class="tab">...</td></tr>    <tr><td id="2" class="tab">...</td></tr>    <tr><td id= ...

  • jQuery Insert table row next to last row

    I'm hoping this is just a simple selector question.I currently have this code which inserts a row at the end of a table.$('<tr class="datarow">').appendTo("#my_table").html(rowcells);I need to add a footer row to the same table. Is there a simplemodification to ...

  • jQuery Interface: Draggable table row in IE

    everyone. Over the past couple of days, I've discovered the magic ofjQuery and am in love! However, here's my situation. I'm basing a projecton the "Folder tree" demo on the Interface website. What I need is to takea row out of a table and categorize it by dropping it in a fold ...

  • jQuery noob: table row level link and hover

    I need to have each table rows point to different link. I am lookingat table striping and how hover works in 15daysofjquery.com.http://15daysofjquery.com/table-striping-made-easy/5/I need to make the whole table row clickable and should take the userto a different link on the site.How do I do this i ...

  • jQuery Problem selecting a table row

    Dear Reader,I am stuck with the following problem. I've read the wholedocumentation of jQuery about traversing and selecting DOM nodes andfound that i can select all nodes that contain a certain type of node- the example was $('p[a]'); all paragraphs that contain a link(anchor). But for ...

  • jQuery How can I show/hide table row as it is a div?

    I have tried $("#row1").show("slow")but it doesn't work.Is it possible to show and hide a table row as it is a div?Sebastian ...

  • jQuery IE7 fadeOut table row?

    I am having trouble getting a table row to fade out an dlook good inIE7. It basically doesn't work, the text turns slightly roughlooking for a second and then disappears. Works fine in FF though.Has anyone achieved this effect? ...

  • jQuery fadeOut not working with table row (tr) in IE6

    Hello,Has anybody been able to get the fadeOut effect working with a tablerow (tr) in IE6? I've read old posts and tried several differentthings without success.This is for a tabular layout that's a bit too intricate forreplacement with divs. Works fine in Firefox, but the fox ist verboten. ...

  • jQuery getting the ID number of a cloned table row

    <html><body>Hello folks,I'm trying to duplicate a row of an existing table using a functionadapted from<a href="http://www.nabble.com/Add-Table-row-to12989886s27240.html#a13300133" eudora="autourl">http://www.nabble.com/Add-Table-row-to12989886s27240.html#a13300133</a>My prob ...

  • jQuery Highlight Table Row with Animate

    At the end of my Ajax request, I'd like to highlight a table row, soto speak. Why doesn't this work:id = 5success: function(e){    $("#address"+id).css("background-color","#F9FFCF");    $("#address"+id).animate({ ...

  • jQuery Cloning a table row.

    I am new to jqueryI have a problem with cloning a table row. It gets messed up if themethod is called more than once. The information is added severaltimes in a row.The html-code is merely used as markup, template information in thiscase. all content is added throughjquery and it's been a deligh ...

  • jQuery Cloning a table row.

    Cloning a table row.Hello I am new to jqueryI have a problem with cloning a table row. It gets messed up if themethod is called more than once. The information is added severaltimes in a row.The html-code is merely used as markup, template information in thiscase. all content is added throughjquery ...

  • jQuery Table Row Clicking + Checking a Checkbox

    I'm having a problem with the code below. Everything works fine but when I click the checkbox in the table row, it doesn't change its state since it seems to be doing it twice. My goal is to be able to click anywhere in the table row to checkmark it, and then clicking the checkbox will also change i ...

  • jQuery how to select the content of the current table row?

    guys,i'm having a hard time with jquery right now.Imagine the following simple table:CODE:<table border='1' id='list_tracks_table'><colgroup><col width='40%' /><col width='20%' /><col width='20%' /><col width='20%' ...

  • jQuery move table row based on a cell. Row filtering

    all,I'm a little stuck. I have two tables. One has several rows of datawith multiple columns. The other is empty. What I'm trying to do is"filter out" rows from the main table and place them into the "trashcan" table based on the values of different table cells.As an exam ...

  • jQuery show/hide (toggle) dynamic table row

    - thank you in advance for your help!I would like to use the toggle function to show hide a table row BELOWa dynamic row, so the table would look like thisrow from database with datarow I want to show hide (defaults to hide)I know how to do this when the table is static but how do I do it whenthe ro ...

  • jQuery Change Table Row Color based on column content

    I have a django app where i have a model which contains a boolean(checkbox) field. What i would like to do is change the correspondingtable row color in the admin table based on whether or not this fieldis checked. i have come to the conclusion that this is only possiblewith jquery. i am a complete ...

  • jQuery Changing the ID of a cloned table row

    Am getting bloody from beating my head against the wall. I just wantto be able to change the id of a table row that is cloned and appendedto a table. This shouldn't be so hard, no?Here's what I've tried:function addTableRow(table){    var clonedRow = jQuery(table + ...