Within my ASP page, I am working with two input elements:
<input type="text" class="arrivalDate form inp compare_prices_fields datepicker total_price_fields price_list_fields allRows" id="calc_arrdate_group_0" value="" style="width: 95px" rbo_id="ArrivalDate" />
<input type="text" class="departureDate form inp compare_prices_fields datepicker total_price_fields price_list_fields allRows" id="calc_depdate_group_0" value="" style="width: 95px" rbo_id="DepartureDate" />
Included in the ASP page is the following JavaScript code:
$(document).ready(function () {
.
.
$(".compare_prices_fields").change(function () {
comparePrices();
});
Interestingly, changing text in the first input triggers the function, but the same does not hold true for the second input.
I have attempted to assign the class "compare_prices_fields" to other elements and they work correctly, except for the specific input that I require.
If anyone could provide guidance on what modifications are needed in my code, it would be greatly appreciated.