Home > Web Front-end > JS Tutorial > body text

jquery infinite cascading menu case sharing_jquery

WBOY
Release: 2016-05-16 17:39:21
Original
1155 people have browsed it

When I saw the regional cascading menu of phpcms, I thought it was quite interesting, so I just talked about the general steps to avoid forgetting it.

The generation of regional cascading menus is generally in the areaid() function of the /data/cache_model/content_form.class.php file. However, this is just a cache and I haven’t found where it was generated yet, so it’s just a test for now. (Students who know tell me! Thank you very much)

Add

Copy code The code is as follows:
function delChild(num)
{
$('#load_$field select').each(function(i,obj){
if (obj.id >num)
$('#' obj.id).remove();
})
}

correspondingly, in /load. Modify elseif($field == 'areaid' && $value) in php

Copy code The code is as follows:
$str =
'