var txt_username = _getValById("txt_username");
var txt_email = _getValById("txt_email");
or set all of input text to an array
var obj = [
'username',
'age',
'address',
'password'
]
var result = _getValById(obj);
alert(result);
For required of input text
var value = [
_getValById('username'),
_getValById('age'),
_getValById('address'),
_getValById('password')
]
var obj = [
'username',
'age',
'address',
'password'
]
if (_required(value,obj)){
var result = _getValById(obj);
alert(result);
}
For set focus to input text
_focus("txt_username");
For get value of input text
var txt_username = _getValById("txt_username");
For clear input text
_clear("txt_username");
For set value of input text
_setValue("txt_username","Lorem Ipsum");
For Inner HTML to element
_printTo("alert_display","Lorem Ipsum");
For clear element HTML
_clear("test_print",true);
For give event on click to button
_onClick("btn_click",function(){
alert("Do something here");
});
For give event on double click to button
_onDClick("btn_d_click",function(){
alert("Double Click, Do something here");
});
For custom console log
_writeLog("This is Custom Console Log ! Color Red");
_writeLog("This is Custom Console Log ! Color Green",false);
For Inner HTML to Body Element
_writeBody("Lorem Ipsum");
For get content of element
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.