var functions ={
//Receives a string of ids, example: ""idOne,idTwo,idThree"'
showControls : function(ids,show){
//first create an array with ids paramater
var controls = ids.split(",");
//get element size
var j = controls.length;
//validate if is show or not
for(i=0;i<=j;i++){
if (show)
$("#"+controls[i]).show();
else
$("#"+controls[i]).hide();
}
}
}
|