I have code that is working except I cannot figure out how to target the value that is generated dynamically by php.
So basically when the user clicks on the hour fields to insert hours on Monday through Sunday, both divs will appear. I tried targeting the #hours class that surrounds the fields but does not work.
$(function () {
//hide hours on phone graphic and display when clicked
$(".hours_bg").hide();
$(".hours").keyup(function() {
$("#hours_bg").show();
});
Also, here is an example targeting an id that works, but again I have no form id, values are creating dynamically by php.
http://jsfiddle.net/1uu1uc7c/3/
update: Here is the view where the php variables are passed dynamically. http://laravel.io/bin/zz8Pr