-1
How can I select element number 2 using jquery? I am selecting with javascript but would like to use Jquery.
34m
1- var hiddenFieldName = ‘UIHiddenFieldSubjectValidaty’ + jQuery("#UIDropDownListValidity option:selected").val(); vai buscar valor do id da select
2-var newSubjectText = document.getElementById(hiddenFieldName).value;
vai buscar os valores da select…
3-jQuery("#UITextBoxSubject").val(newSubjectText);
coloca os valor da select na textbox
var newSubjectText = $('#hiddenFieldName'). val();
– Jorge.M
I did so , also gave error in the same.
– Jesus Neves
Also I did, so, always error, as I will search id in select, then I take the value of id. with javascript works, but jquery always gives error, already expressed this, way.....
– Jesus Neves
Dude, the value is already saved in the variable, just do it like this:
var newSubjectText = hiddenFieldName
;– Jorge.M
var hiddenFieldName contains this value = Uihiddenfieldsubjectvalidaty360. when I do getElement contains this value = NOS Follow Car + share position during the next 15 minutes.
– Jesus Neves