August 7, 200917 yr Me again... I have another small question. How would I use Java Script to change two pieces of text via a link... So when I click on "next" it will change to two lines of text... "hotel" name and the "price"
August 7, 200917 yr I'm not sure how you replace text, but javascript "expand/collapse" paragraphs are often seen. http://javascript.internet.com/miscellaneous/expand-collapse-paragraph.html
August 7, 200917 yr document.getElementById('element').onClick = function() { this.innerHTML = 'Hotel<br>Price' } ...I think... been a while since I wrote JS...
Create an account or sign in to comment