Hello Members

I am having a problem that is i want to access the listbox from javascript(client side) that is in datalist. and also i want to validate that listbox for selection.

please help me......

var Val = document.getElementById('ListBox1').value;

Used For getting value form listboz on clienside

We Can also control the validation on clientside itself ... but i know u r requirement(example) clearly..

I have nested datalist and listbox is inside the inner datalist.first i have to find out that for validate that only a number of items user must select.and also i have to find the value of selected items of that listbox.

thanks.....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.