A
A
Aptixx2014-06-30 11:33:04
JavaScript
Aptixx, 2014-06-30 11:33:04

How to replace one of the functions in the mootools code that doesn't work in Joomla 3?

Hello! Site on Joomla 3. The following code in the script does not work:

$$('#filter_type_id',
'#filter_department_id',
'#filter_town_id',
'#filter_area_id',
'#rooms_min',
'.amenities input'
).each(function (item) {
item.addEvent('change', function() {
geoSearch.refresh();
});
});

When changing the value of elements, a function must be executed that is not currently being executed. All other code that does not contain the $$ function is executed correctly. Tell me how to change this code so that it works on Joomla 3 (Jquery and Jquery noConflict are connected by default by the engine itself), the component used loads Mootools itself.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question