how to get an span element text to a input element and then grab the input element value and display it as a list below? From the code below, when I click the btnGET I would like to put the 8:00 pm into the <input id="txtTime" type="time" /> and then again get the new value of txtTime and display it as a list below when btnSET is clicked ..I am doing this to check how the type time will change the type of user input...Same is the case with EMAIL span as well.. Thank you in advance..
I want to loop through all label elements of my page and grab their id and data-myvalue values and show them as an un-ordered list below the div... How can i achieve this
What I basically want to achieve is compare both the files by data-key and data-content-type and check to see if the teacher-value has changed in the newCourses.html and then add a class .valueHasChanged to the changed span in the oldCourses.html.
In the above example sciences teacher-value has changed from James to Jimmy. In that case oldCourses.html span containing : data-content-type="sciences" data-key="2" should have the class .valueHasChanged.
test =[ [id:1,subject:math], [id:2,subject:math], [id:1,subject:science], ]
what i basically want is when i am trying to push a new object in my array , i should check if the id subject pair already exits like [id:1,subject:math] should be inserted. So basically unique pairs are only to be allowed. Hwo can i loop through this test array to find if a match exits.