JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" name="rif_p_c1" id="rif_p_c1" />
<input type="datetime-local" name="rif_from_c2" id="rif_from_c2" value="1985-04-12T23:20:50.52"/>
JavaScript
$(function() {
$('[id^=rif_from_]').on('change', function(){
var value = $(this).val();
alert(value); /* alerts '' */
});
});