Dropdown menu with prototype.js in IE

I had problems with this script: http://loki.timon.com.ua/select/
In IE8: everything works fine - dropdowns, cloned outputs work.
In IE7: Dropdowns do not work.
In IE8 with IE7mode: the first drop down job is usually cloned - no.

People can you help me?

+3
source share
2 answers

Fixed. Just replace

onclick="changeMessengerType(this);"

CHANGES TO

onclick="changeMessengerType($(this));"

and

liselected.update(li.innerHTML);

TO

$(liselected).update(li.innerHTML);

Thanks to everyone.

0
source

I have IE7 at work ... so for me the script is not working as it is ... although it works fine in FF3.5 +

... , ....

<dl class="selectboxs" style="width:74px;" onclick="this.down('dd').toggle()">  

<dl class="selectboxs" style="width:74px;" onclick="$(this).down('dd').toggle()">   

$, . , , , .

, $() id.. .. .

function addMessenger(id)
{
    $(id).insert({after:'<div>' + $(id).innerHTML + '</div>'});
    return false;
}

inline js, , , - ? , JT/prototype ?

0

Source: https://habr.com/ru/post/1755593/


All Articles