Link a JS to a column in a list?

Link a JS to a column in a list?

I am trying to I get the ID to attach(link) a JS file to the column. I first need to get the column value (a Date). Is my approach correct?

 $(document).ready(function () { var myValue = $( 'th:contains:"Title of column' ).val(); // Is this the right approach?   function MyCustomFunction(myValue) { // my process to update the date }  }