Am I writing the correct switch case?
var cnt = $(\"#div1 p\").length; alert(cnt); switch (cnt) { case (c
Switch case is every help full instead of if else statement :
switch ($("[id*=btnSave]").val()) { case 'Search': saveFlight(); break; case 'Update': break; case 'Delete': break; default: break; }