Tag Archives: Java Script and jQuery

Restrict selection of some options in select element without disabled attribute using jQuery

last day, One of my friend was facing a strange problem in the select element. His select element has some disabled options( using the disabled attribute), and element is working fine every where but failed in the safari (ipad) and also disabled attribute is not supported in Internet Explorer 7 and earlier versions. After implementing … Continue reading Restrict selection of some options in select element without disabled attribute using jQuery

How to assign undefined value to an array element in JavaScript

  Following example shows that how to assign undefined value to an array element in JavaScript. <HTML> <HEAD> <TITLE> undefined element in javaScript array </TITLE> </HEAD> <BODY> <SCRIPT> var ArrayCity = new Array(4); ArrayCity[0] = "New Delhi"; ArrayCity[1] = "NewYork"; ArrayCity[2] = undefined; ArrayCity[3] = "Kolkata";   for (var i = 0; i < ArrayCity.length; … Continue reading How to assign undefined value to an array element in JavaScript