Tag Archives: javascript

Description: Having a PhP form, we need to manipulate in JavaScript an object that depends on the form input. Solution: The best way to do it is to use an encoded JSON object or an AJAX call. The AJAX call … Continue reading →

Description: Hide or show different HTML fields when markup is changed. Solution: There are 3 aspects to take into consideration. First, we have to identify which element will dictate the change. This is done by adding the property onchange or … Continue reading →