Hello,
I am trying to write a generic function to update some values in the input fields.
In the generic function, I have something like:
function test(field_name){
...
if ($('#' + field_name + '.jqx-input').length == 1) {
// update the value in the input field
}
else if (...)
..
}
The purpose of the “if statement” is to confirm the type the field is a “jqxinput” field. If it is something else, I may need to a different update statement to update the field.
I wonder if there is a better way to identify the type, which can be used generically for “jqxinput” field, as well as other “jqwidgets” objects as well.
Thank you.