How to change inline colorbox ‘href’ dynamic
like i want when i click on a ‘tr’ colorbox take it ‘title’ to ‘href’
and show it
like
<table>
<tr title="project1">
<td></td>
</tr>
<tr title="project2">
<td></td>
</tr>
</table>
<div id="project1" style="display:none">this is about project one</div>
<div id="project2" style="display:none">this is about project two </div>
You can do this:
On row click, this takes the title attribute, uses it as an
IDselector and shows the matching element. If you want to hide the others when this happens, give your divs a class likeclass="project"and just add a call to hide the test before showing, like this: