HI,
I have created a cascading dropdown using PHP/mySQL/Ajax, that pulls data for two select boxes and populates a third based on the previous.

This all works perfectly, but anyone know a way to check when this new dropdown changes without adding a onchange or simular to the select at the time of creation?

P.S
New here so hope I'm posting correctly

If you give the select field a class and then run some code using jQuery, would that work for you?

$(".className").change(function() {
    // Your code here 
});
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.