As you have everything already in your HTML and you want to do some action/call some function you can use:
$(document).ready(function () {
//add your code here
});
Refer to JQuery documentation to understand better how .ready function works.
A page can't be manipulated safely until the document is "ready."
jQuery detects this state of readiness for you. Code included inside
$( document ).ready() will only run once the page Document Object
Model (DOM) is ready for JavaScript code to execute. Code included
inside $( window ).on( "load", function() { ... }) will run once the
entire page (images or iframes), not just the DOM, is ready.
If you also want some function to always execute something when the element changes you can attach the .change() to this element, as you can see below:
<form>
<input class="target" type="text" value="Field 1">
<select class="target">
<option value="option1" selected="selected">Option 1</option>
<option value="option2">Option 2</option>
</select>
</form>
<div id="other">
Trigger the handler
</div>
bind event to all elements with class target.
$( ".target" ).change(function() {
alert( "Handler for .change() called." );
});
This will trigger the alert inside change function everytime the DOM has changed on the attached elements.