Hi,
Does someone can help me with the following problem?
I have a SELECT form tag, with some OPTIONS elements. I am using the
following code to detect a click in the SELECT.
....
document.onclic k = fnc_document_cl ick
....
function fnc_document_cl ick(){
if(window.event .srcElement.id == "my_lst"){
......
}
}
How can I avoid the "if" if user click in a area of SELECT out of the
options elements? (The SELECT object is higher than the the goups of
OPTIONS its contains)
In other words, how can detect if the click Iinside the SELECT element)
happens in a OPTION element or not?
Thanks in advance
Does someone can help me with the following problem?
I have a SELECT form tag, with some OPTIONS elements. I am using the
following code to detect a click in the SELECT.
....
document.onclic k = fnc_document_cl ick
....
function fnc_document_cl ick(){
if(window.event .srcElement.id == "my_lst"){
......
}
}
How can I avoid the "if" if user click in a area of SELECT out of the
options elements? (The SELECT object is higher than the the goups of
OPTIONS its contains)
In other words, how can detect if the click Iinside the SELECT element)
happens in a OPTION element or not?
Thanks in advance
Comment