Hello, I am relatively new to Jquery and Javascript. I am trying to manipulate a plugin into what I want it to be on wordpress. I have my php and html the way I think I want it. I have a small bit of code for Jquery that I have been trying to get to do something but for some reason, it won't run. any idea why this would be?
Here is the html I am trying to change:
echo "<table class='timecard1' ><caption> Week 1</caption><tr align='center'><tr align='center'><td></td>
<tr><td>{$this->int_to_weekday($options['week_starts'], 0)}</td><td><input type='text' name='monday_date' value='' size='5' disabled></td><td><input type='text' id='monday_hours' size='5' maxlength='5' value='{$timesheet->monday_hours}' disabled></td>
and I just want to take the information entered in the text box:
<input type='text' id='mondayb_hours' size='5' maxlength='5' value=''></td>
with the button:
echo "<br><input type='button' value='Update Totals' id='update_totals' class='button-primary'>";
heres my Jquery:
<script>
$("#update_totals").click(function(){
$("#monday_hours").val("#mondayb_hours");
});
});
</script>