so this add row but star rating is not shown I am attaching snapshot
I have this type of design but when I click on Add A Task it does not render star-rating div it shows like this
I have included this in my js file
$(document).on('nested:fieldAdded', function(event){
// this field was just inserted into your form
var field = event.field;
// it's a jQuery object already! Now you can find date input
var star = field.find('.star-rating');
// and activate datepicker on it
star.raty({
targetType : 'score',
targetKeep : true
});
})
but still its not working.
Please guide how to render that div in nested-form.
Does the javascript really fire on nested:fieldAdded ? If you add a line alert('it fires'), do you see the message when you click the add a task button ?
Hi I am using
gem "nested_form"
and in my view I have given like thisIn js file I have I have given this
to show star rating I have used
so this add row but star rating is not shown I am attaching snapshot![enter image description here](http://i.stack.imgur.com/RWBBq.png)
I have this type of design but when I click on
Add A Task
it does not render star-rating div it shows like thisI have included this in my js file
but still its not working. Please guide how to render that div in nested-form.