Hi friends,
I need to know, how to fetch class name from div instead of id when using Ajax on Rails
my coding is like below,
<div id="test_test1" class="test">
</div>
<div id="test_test2" class = "test">
</div>
and on Controller,
page.replace_html "test_test1", "<button>Thanks</button>"
please help me to solve this problem.
Thanks