Within my rails application, there exists a task bar. The objective is to filter the contents in this task bar by selecting a checkbox and reloading a specific div accordingly.
This was my attempt:
$("input:checkbox").change(function(){
'<%@final_tasks= @final_tasks.find(142)%>'
$("#task_content").reload();
});
The class name task_content
corresponds to the target div. However, my code did not produce the desired outcome. Seeking assistance on this matter..