I am putting together a plan table TABLE , where the" JOIN THE PLANE "button changes the link according to the options chosen in the select.
Two of the 4 select the user should select, are STATUS and CITY, these, not written in the select option and yes they are pulled from a database.
So, in order for the joins button to switch from link to selected options, you need to know the value of each select option, which is pulled from the database.
So I would like to know if it is possible to find the value of a select that is pulled from the database, or if there is any other way to mention the city, or state other than by value, which in this case does not exist.Thank you.
jQuery(function($){
$('#volume, #tipo, #estados').change(function(){
var volume = $('#volume').val();
var tipo = $('#tipo').val();
var estados = $(this).val();
if (volume == "peq" && tipo == "visitas_quatro" && estados == "SP") {
$('.Linkbotao').attr('href', 'site.com');