Tag Archives: javascript

Send array values from PhP form to 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

Posted in Script | Tagged , , , , | 2 Comments

Hide HTML fields with Javascript

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

Posted in Script | Tagged | 1 Comment