I want to disable a particular row button and not all the buttons. I tried using id
but it only hide the very first row button. Any help would be nice.
php:
$rowID=1;
while($row = oci_fetch_array($query))
{
echo '<tr>
<td>
<a href="#" rel='.$rowID.' id="buttonq" class="button green ValueDisplay">
<div class="icon" style="margin-left: 5px; margin-top: 5px;">
<span class="ico-edit"></span>
</div>
</a>
</td>
</tr>';
$rowID++;
}
js:
<script>
$('.ValueDisplay').click(function()
{
var getid = this.rel;
$('#buttonq').css('visibility', 'hidden');
//document.getElementById('buttonq'+getid+'').style.visibility="hidden";
});
</script>