#JavaScript #XHTML #CSS #Drupal

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
aac's picture

Javascript help required for a custom module.

I have created a custom module and using hook_form_alter() to do the following-

<?php
$form
['title']['#prefix'] = '<div id="title-ajax-check-wrapper">';
$form['title']['#suffix'] = '</div><div id="title-ajax-check-message"></div><div id="title-ajax-check-informer" class="title-ajax-check-informer">&nbsp;</div>';
?>

Now in my js file i am using the following-

<?php
// $Id: title_ajax_check.js$

Drupal.behaviors.titleAjaxCheckBehavior = function (context) {
$('#title-ajax-check-wrapper input:not(.titleAjaxCheckBehavior-processed)', context)

Read more
Subscribe with RSS Syndicate content