From the course: Ajax with PHP: Add Dynamic Content to Websites
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Update page on change
From the course: Ajax with PHP: Add Dynamic Content to Websites
Update page on change
- [Instructor] In this movie, we'll apply what we've been learning in this chapter to see how to update a web page when an element on the page changes. You'll see that I've got another directory here inside Sites directory called ajax_categoryselect. This is included in the exercise files, if you have access to those. Let's open them up in our Atom text editor and take a look. First, let's take a look at index.html. This is going to be a basic HTML page, and it has a div which has an id of form. Now, it's not actually a form. It would have a form tag if that were the case. I'm just simulating or suggesting the idea of a form. On that form, though, we have a question, which category are you interested in? Maybe we're asking a customer for more information, or maybe this is a form that's allowing someone who's using our website to get the kind of information that they're looking for on the website. So, we have a category-select, and this is a select option. That's the kind of drop-down…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.