Get selected Li from UL
-
Hi All, I have an Unordered List which has many list items, and when we select a li, it opens up two spans, in one of the Span we have have radio buttons, I want to get the baseURL field that is attached to the li that I am selecting so that, can any one please help me any code snippet, link or even suggestion would be helpful. Thanks in advance. All I want is either to get the report-url attribute or value of the span under the li that is selected or we can say active, I tried in the following ways but couldn't succeed, by the way I have to get these values when I click on the radio button that is within this list item, please help me.
var listitm = $("#li.report active"); var ttl = listitm.find('span.title').toString(); alert(ttl);
-
Enrollment by Child Lists children with their age, poverty level, IEP status, priority points and first and last days attending class.
This report includes children who have started class and children with an expected start date in the future. The "As of" date version of this report includes children with a pending exit or with an exit on the "As Of" date. The "Cumulative" version of this report includes all children who exited during the reporting period. Children who never attend class are subtracted from this report upon exit or transfer.
x
Report Parameters for Enrollment by Child Report
<label for="phb\_ddlSchoolYear" id="phb\_lblSchoolYear" class="req">School Year</label> <input type="submit" name="ctl00$phb$btnRunReport1" value="Run Report" id="phb\_btnRunReport1" style="width: 115px; background-image: url(http:
-
-
Hi All, I have an Unordered List which has many list items, and when we select a li, it opens up two spans, in one of the Span we have have radio buttons, I want to get the baseURL field that is attached to the li that I am selecting so that, can any one please help me any code snippet, link or even suggestion would be helpful. Thanks in advance. All I want is either to get the report-url attribute or value of the span under the li that is selected or we can say active, I tried in the following ways but couldn't succeed, by the way I have to get these values when I click on the radio button that is within this list item, please help me.
var listitm = $("#li.report active"); var ttl = listitm.find('span.title').toString(); alert(ttl);
-
Enrollment by Child Lists children with their age, poverty level, IEP status, priority points and first and last days attending class.
This report includes children who have started class and children with an expected start date in the future. The "As of" date version of this report includes children with a pending exit or with an exit on the "As Of" date. The "Cumulative" version of this report includes all children who exited during the reporting period. Children who never attend class are subtracted from this report upon exit or transfer.
x
Report Parameters for Enrollment by Child Report
<label for="phb\_ddlSchoolYear" id="phb\_lblSchoolYear" class="req">School Year</label> <input type="submit" name="ctl00$phb$btnRunReport1" value="Run Report" id="phb\_btnRunReport1" style="width: 115px; background-image: url(http:
This line:
var listitm = $("#li.report active");
You're referencing "active" as if it's a tag. Add the "." before it, like so: "#li.report.active". You can chain the tag + classes. Also, to read an attribute, you use jQuery's "attr()" method:
var title = listitm.find("span.title").text(); // This is the text inside the SPAN tag
var url = listitm.find("span.title").attr("report-url"); // Reads the attribute "report-url"djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.
-
-
Hi All, I have an Unordered List which has many list items, and when we select a li, it opens up two spans, in one of the Span we have have radio buttons, I want to get the baseURL field that is attached to the li that I am selecting so that, can any one please help me any code snippet, link or even suggestion would be helpful. Thanks in advance. All I want is either to get the report-url attribute or value of the span under the li that is selected or we can say active, I tried in the following ways but couldn't succeed, by the way I have to get these values when I click on the radio button that is within this list item, please help me.
var listitm = $("#li.report active"); var ttl = listitm.find('span.title').toString(); alert(ttl);
-
Enrollment by Child Lists children with their age, poverty level, IEP status, priority points and first and last days attending class.
This report includes children who have started class and children with an expected start date in the future. The "As of" date version of this report includes children with a pending exit or with an exit on the "As Of" date. The "Cumulative" version of this report includes all children who exited during the reporting period. Children who never attend class are subtracted from this report upon exit or transfer.
x
Report Parameters for Enrollment by Child Report
<label for="phb\_ddlSchoolYear" id="phb\_lblSchoolYear" class="req">School Year</label> <input type="submit" name="ctl00$phb$btnRunReport1" value="Run Report" id="phb\_btnRunReport1" style="width: 115px; background-image: url(http:
-