Ex No: 8 | CHANGE LINK CONTENT USING JQUERY |
---|---|
Aim: | To write a JQuery code to change the hyperlink and text of an a link. |
Algorithm | |
Step1: Create a folder “Ex8” to place the HTML files. | |
Step2: Create HTML files “index.html”, “vote.html” and “novote.html”. | |
Step3: Add the JQuery link to the page. | |
Step4: Add JQery code to check age and change content of a link. | |
Source Code | |
index.html
vote.html
novote.html
|
|
Result: | Thus JQuery code is written to change text and hyperlink of a link element. |