Here is the html code
</div>
<div class="col-lg-6 col-md-6 form-group">
<label for="inputBookNo">Winning Book No</label>
<input type="number" min="1" class="form-control" name="book_no" placeholder=" Winning Book Number" required>
</div>
<div class="col-lg-6 col-md-6 form-group">
<label for="inputBookNo">Consolation Prize 1</label>
<input type="number" min="1" class="form-control" name="book_no_con1" placeholder="Consolation Prize 1 Book Number" required>
</div>
<div class="col-lg-6 col-md-6 form-group">
<label for="inputBookNo">Consolation Prize 2</label>
<input type="number" min="1" class="form-control" name="book_no_con2" placeholder="Consolation Prize 2 Book Number" required>
</div>
<div class="col-lg-6 col-md-6 form-group">
<label for="inputBookNo">Consolation Prize 3</label>
<input type="number" min="1" class="form-control" name="book_no_con3" placeholder="Consolation Prize 3 Book Number" required>
</div>
<div class="col-lg-6 col-md-6 form-group">
<label for="inputBookNo">Consolation Prize 4</label>
<input type="number" min="1" class="form-control" name="book_no_con4" placeholder="Consolation Prize 4 Book Number" required>
</div>
</div>
Is there anyway I can prevent input for one element say Consolation Prize 1(book_no_con1) not be same as another element input say Winning Book No(book_no)?
i.e I want to implement the form in such a way that input for Winning Book No,Consolation Prize 1-4 i.e all elements should be different numbers.