Hi all. I have 2 problems. On add page i hide some fields conditionally using change function in startupscript, and all its allrigth. For example:
$("input[name='x_ajuste_valor_inicial']").change(function() {
if (this.value !=1) {
$(this).fields("nvo_valor_liquidacion").visible(false);
Now, in edit page i want to use the same schema, but some of those hiding fields depending for value to the other one. So i need get the value of some fields when edit page load.
I tried testing with:
if
( $("#x_id_detalle_estado").val() == "1")
{
something
};
Does not work, field is dropdown list.
and
alert(
$("#x_id_detalle_estado").val()); Doesnt return nothing
alert($("#x_id_detalle_estado").text()); return "Please Select" text --> After alert the value of dopdrownlist load , i dont know..
alert($(this).fields("id_detalle_estado").value); nothing happens
How can i get the value of field in edit pages for my startupscript ???
The second problem is that some of that fields are readOnly for some users. This could be change the method to get that values or is the same thing?
Thanks in advance for any help.
Regards.