ryanb/complex-form-examples — Issue #17: Jquery not running 
Author: Arif-Liveweaver
Created: 2011-12-16 12:24:45+00:00
State: open

Hey I am a new bee and I am using rails 3. I've followed your episode 196 and it work fine for me but while following the second part I got stuck with jquery which is not running for removing the fields. Following is the code

function remove_fields(link) {
$(link).previous("input[type=hidden]").value = "1";
$(link).up(".fields").hide();
}
can anyone tell me why it's not working. It also not giving any error.