I have a bunch of links on a page:
<a href='#' class='link' id='1'>1</a>
<a href='#' class='link' id='2'>2</a>
<a href='#' class='link' id='3'>3</a>
<a href='#' class='link' id='4'>4</a>
<a href='#' class='link' id='5'>5</a>
These links open a modal that provides users a bunch of data. A user can edit some data and submit a form in this modal. After they are done, I want to reload the data in this modal.
how can i trigger a click based on the class and the id. Basically in laymans turns I want to:
$('.link' //That has id 4//).trigger('click');