Dicari cari susah nemunya, akhirnya nemuin ini FORM api drupal untuk fungsi bagaimana state form berubah dinamis, misal kasusnya kita ingin mengaktifkan CHECKBOX, tetapi TEXTAREA harus di isi dulu..

Just edit .htaccess file in your Drupal root directory. For example, I added the following two lines.

php_value post_max_size 100M
php_value upload_max_filesize 100M
php_value memory_limit 96M (this is vital for Drupal 6)

# PHP 4, Apache 2.

JQuery Rocks

jQuery Rollovers Using “ this ” If you’ve been programming in PHP, or other object oriented languages, you may have come across “this” or “self”. With jQuery, we can write $(this) to select an element in the DOM (Document Object Model).

Recently, for the first time with Drupal 6, I needed to create a form where a variable number of fields could be added to it by simply clicking a 'Add more' button. I wanted to design a node form where users could create a custom compilation album of their favourite tracks.

Fungsi API ini adalah untuk menambahkan JS pada header theme / module

drupal_add_js(path_to_theme() .'/jquery.innerfade.js', 'theme');

Syntax berikut untuk di code dalam

scripts[] = jquery.innerfade.js