QUESTION ONE: Please suggest what might be entered where the three ? marks appear in order to achieve the following goal.
THE GOAL: See appear the value of mil in the input control text field and have this value become the value of $_POST['item_encllength'] when the form is submitted.
var min = $('#min').val();
var sec = $('#sec').val();
var mil = function(min, sec) {
var millisec = ((min * 60) + sec) * 1000;
return millisec;
}
$('#item_encllength').mousedown(mil, function() {
$(this).???;
});
<input id='min' type='number' value='Minutes'>
<input id='sec' type='number' value='Seconds'>
<input id='item_encllength' form='rss2_feed' type='text' name='item_encllength'>
I have experimented in a variety of ways, but have not been able to find the code necessary to achieve my goal. Perhaps my approach to the problem is inappropriate.
Roddy