Sunday, October 18, 2009

jQuery - How To ...

How to get selected option value?
var optionValue = $("#DropdownId option:selected").val();


How to check existance of an HTML element?
$("#elementId").size()>0
or
$("#elementId").length>0

If you know any cool jQuery expression please post it here...

No comments:

Post a Comment