observe_field on rails 4

hi

i used observe_filed on rails2 to detect a choice in a popup, an use
render update in my controller

how can i use this functionnality in rails 4 ?

do i have to go with javascriot or jquery

thanks for you help