| Author: satya 02 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hi,
It may help tou.
if(document.getElementById("ddlLocation").options[document.getElementById("ddlLocation").selectedIndex].value=="New Location") { if(document.getElementById("txtLocation").value=="") { alert('Please Enter Location'); document.getElementById("txtLocation").focus(); return false; } }
|
| Author: Shawpnendu bikash maloroy 04 Nov 2009 | Member Level: Silver | Rating:  Points: 2 |
You can read the following link. Hope it will help you:
http://shawpnendu.blogspot.com/2009/08/javascript-how-to-get-selectedtext-from.html
|