Welcome Guest, Not a member yet? Register   Sign In
how to associate star rating system with a link
#3

[eluser]oursteps[/eluser]
Thanks CroNIX.

I tried it like this:
Code:
[removed]
$(function(){
$('.auto-submit-star').rating({
  callback: function(value, link){
  var abc = $(this).parent().siblings("#vedio_url").text();...

and the HTML:
Code:
<?php $i=1; if(isset($records)) : foreach($records as $row) : ?>
<tr>
<td id="vedio_url">&lt;?php echo $row->url; ?&gt;</td>
<td>&lt;?php echo $row->sitename; ?&gt;</td>
<td>&lt;?php echo $row->tag; ?&gt;</td>
<td>
   &lt;input class="auto-submit-star" type="radio" name="rating&lt;?php echo $i;?&gt;" value="1"/&gt;
   &lt;input class="auto-submit-star" type="radio" name="rating&lt;?php echo $i;?&gt;" value="2"/&gt;
   &lt;input class="auto-submit-star" type="radio" name="rating&lt;?php echo $i;?&gt;" value="3"/&gt;
   &lt;input class="auto-submit-star" type="radio" name="rating&lt;?php echo $i;?&gt;" value="4"/&gt;
   &lt;input class="auto-submit-star" type="radio" name="rating&lt;?php echo $i;?&gt;" value="5"/&gt;
</td>
</tr>

It works now Smile


Messages In This Thread
how to associate star rating system with a link - by El Forum - 01-30-2012, 07:36 AM
how to associate star rating system with a link - by El Forum - 01-30-2012, 11:58 PM
how to associate star rating system with a link - by El Forum - 01-31-2012, 12:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB