I'm working on a project (Java with XSL/XML) where I have to make the least changes to the already existing code, but I have this scenario and I want to know if it is possible.
Let's say I have this form :
<form method="get">
<input id="checkbox-has-file" type="checkbox" name="myCheckBox" value="test">
<input name="" type="submit" value="sup">
</form>
Is it possible to like pre-select the checkbox using only the url parameters, like this :
localhost/page.html?myCheckBox=true
I know it is possible using JavaScript or JQuery, but I'm trying to avoid extra code.
Thank you!