how to associate star rating system with a link |
[eluser]oursteps[/eluser]
I am trying to integrate star rating plugin(http://www.fyneworks.com/jquery/star-rating/) with my code. for example: Code: $(function() { But I don't understand what the parameter "link" is? how can I associate the script with an item to be rated? (i.e. the system need to know which item is being rated...) anyone can help me? Thanks.
[eluser]CroNiX[/eluser]
I believe link is the actual anchor that was clicked on. As far as associating the script with an item, I'd put it in the elements id, then when you click on it grab the ID and send it with the ajax.
[eluser]oursteps[/eluser]
Thanks CroNIX. I tried it like this: Code: [removed] and the HTML: Code: <?php $i=1; if(isset($records)) : foreach($records as $row) : ?> It works now ![]() |
Welcome Guest, Not a member yet? Register Sign In |