tcallsen / jquery-star-rating-plugin

Automatically exported from code.google.com/p/jquery-star-rating-plugin
0 stars 0 forks source link

How to remove star rating events and classes before cloning #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add star rating in a div
2. Clone the div
3. The new div does not have star images and events are linked to original 
inputs

What is the expected output? What do you see instead?
I would like to know how to remove events and classes from one star rating 
group before cloning it and calling the rating() function. I must use the 
.clone(true) function because I have many other events that I need to clone.

What version of the plugin/jQuery are you using?
PLUGIN VERSION: 3.14
JQUERY VERSION: 1.7.2

On what browser(s) or operating system?
BROWSER(S): Chrome/IE/Firefox on Windows all

Please provide a link to where the problem can be observed:
URL: private intranet site

Feel free to provide any additional information below.

Thank you so much for your code, it is working very well

Original issue reported on code.google.com by sebastie...@gmail.com on 19 Jun 2012 at 7:22

GoogleCodeExporter commented 9 years ago
Are you using the withDataAndEvents option?
http://api.jquery.com/clone/

Original comment by diego.a...@gmail.com on 24 Feb 2013 at 12:52