How could I get the value of an element via the attribute name instead of the ID. eg if I use by id it would be $(\'#id\').val();
you can also use the class name.
$(".yourclass").val();
What element is used for the part with a green background? Just type the name of the element without "<" and ">" characters. For example type P, not <P> if the answer is the <P> element.
$('[name=whatever]').val()
The jQuery documentation is your friend.
let startDate = $('[name=daterangepicker_start]').val();
alert(startDate);