i am stuck here, actually wanted to change the href values of the a tag with rel=shadowbox property of a items in list , where the data is read from the table on the page.. here is my html code
<div id="packgeImages">
<ul>
<li class="title"><a href="" rel="shadowbox"><img src="../../images/packages2/agra1thumb.jpg" alt="thumb1" /></a></li>
</ul>
</div>
And here is my jquery code to capture the paths from grid and then append to the class .title
<script type="text/javascript">
$(document).ready(function () {
var $title = $('.title').attr("href"); //Unable to capture this
$('#fullImageGridView tr').each(function (i) {
if (!this.rowIndex) return; // skips first row
var bigSizeImagePath = this.cells[0].innerHTML;
// alert(bigSizeImagePath);
$title.eq(i - 1).append(bigSizeImagePath);
});
});
</script>
I guess the appending is not working fine, the changes should be made linke this $("a").attr("href", "http://www.google.com/")
I mean changing the attribute of href and not appending the values?? right?
liandais inside title.