0

Hi

I cann't get count the selected list box items using javascript so you please help me.
if you know means please send to me

Advance thanks

5
Contributors
6
Replies
8
Views
9 Years
Discussion Span
Last Post by taur
-1

Try this below code.

<html>
<script language-"javascript">
function countselected()
{ 
var selOpts= $("#cboList").find("customer").length+1;
alert(selOpts);  
</script>
</html>   
}

It was working fine for me.

Edited by Jayavardhan: Forgot to close some tags..

-1
alert(listboxelem.length);
alert('The question you are answering was asked 2 1/2 years ago');
-1
var selOpts= $("#cboList").find("customer").length+1;

It was working fine for me.

alert('The question to which you have just given a wrong answer was asked 2 1/2 years ago');

The resurrection of this thread was annoying, but at least the other poster got the answer and the language right.

Votes + Comments
You better to reply this post past 2 1/2 years ago.
0
alert('The question you are answering was asked 2 1/2 years ago');

aware of that, though is still relevant for future reference

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.