check for a span class content and then update the quantity using jquery?
- by PD24
I have code code here:
//Check current
if (parseInt($("#Quantity").val()) < 25) {
// If it is less than 25 then set it to 25
$("#Quantity").attr("value", "25");
}
It checks if the quantity box has less than 25 and if it is, adds 25 to the box.
The problem is on a particular product i need to check IF my pages contains:
<span…