// Looking at the DOM we can see that all the relevant stuff we want to hide/show is packed in a table. Hint: to play around with jquery, go to devtools, and just write your selectors there. $('tbody') will grab the table from the DOM I just mentioned.
$('label[for=id_author_list]').hide()
$('input#id_author_list').hide()
// Hiding all the rows for initial set-up
$('label[for=id_pub_date]').hide()
varallToggableRows=$('tr').slice(1)// Slices off the first element of the array. Read the documentation on this one, its quite useful. Same for .each and .map in upcoming code.
$('input#id_pub_date').hide()
$('label[for=id_arxiv_link]').hide()
allToggableRows.each(function(index){
$('input#id_arxiv_link').hide()
$(this).hide()// this is the object we're handling in the current iteration of the loop. It is wrapped in $(' ... ') to make it an jQuery object, so that we can call a jQuery function on it like .hide()
$('label[for=id_pub_DOI_link]').hide()
})
$('input#id_pub_DOI_link').hide()
$('label[for=id_pub_abstract]').hide()
// Indices to remove in order to show thing named by variable name