I was hoping to get some advice on the following. I have a dropdown box which has 15 separate options, when an option is selected a paragraph of text is displayed under it. Therefore I have 15 paragraphs of text each assigned as a 'Value' to the dropdown option.
The value is displayed under the dropdown box when an option is selected.
From an SEO perspective, I have been advised that this may be bad practice as Google may percieve this as 'hidden' text and give a low weight to the page when it comes to ranking.
How can I instead keep the text on a seperate page and 'pull' the additional value based on the dropdown list value?
The code I am working off is here: https://codepen.io/mgsolid2010/pen/amrxRA
HTML
<label for="car">Car</label>
<select id="car">
<option value="---Select Option---">---Select Option---</option>
<option value="Ford">Ford</option>
<option value="Fiat">Fiat</option>
<option value="Volvo">Volvo</option>
</select>
<label for="engine">Engine</label>
<select id="engine">
<option value="---Select Option---">---Select Option---</option>
<option value="1.4 Petrol 1.4">1.4 Petrol1</option>
<option value="1.6 Petrol">1.6 Petrol</option>
<option value="2.0 TDI">2.0 TDI</option>
</select>
<button id="process">Update</button>
<a id="displayText" style="display: none"><p>Please select an option from the dropdown list above.</p></a>
<div id="toggleText" style="display: none"><h1><p>You have chosen a <span class="car">Ford </span> with a <span class="engine">1.4 Petrol</span> engine.</p></h1></div>
JS
$('#process').on('click', function() {
var ele = document.getElementById("toggleText");
var text = document.getElementById("displayText");
var car = $('#car :selected').text();
var engine = $('#engine :selected').text();
if (car == "---Select Option---" || engine == "---Select Option---" ){
ele.style.display = "none";
text.style.display = "block";
} else{
ele.style.display = "block";
text.style.display = "none";
$('p .car').text(car);
$('p .engine').text(engine);
}
});
Many Thanks