When I have the following search parameter in the URL ?lname=lname, I want to apply the following CSS:
.fname {
display: none;
}
.lname {
display: block;
}
<div class="fname">
<input id="userInput" class="form-control" placeholder="Enter Your Name">
</div>
<div class="lname">
<input id="userInput" class="form-control" placeholder="Enter Your Name">
</div>
The current CSS code looks like this:
.lname {
display: none;
}