html - Adding the clicked li as request parameter -
i try make link form, have following code:
<form action="details" method="get" id="breadcrumb"> <button type="submit" id="back" class="btn btn-sm btn-primary"> <span class="fa fa-chevron-left"></span> </button> <ol class="breadcrumb"> <li onclick="breadcrumb.submit();" id="file">file</li> <li onclick="breadcrumb.submit();" id="format">format</li> <li onclick="breadcrumb.submit();" id="batch">batch</li> <li id="payment" class="active">payment</li> </ol> </form>
i want add id clicked li parameter, can pass detailscontrollerservlet.
how do that?
it simple as
<li onclick="breadcrumb.submit(this);" id="file">file</li>
Comments
Post a Comment