Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
student/student.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
13 lines (11 sloc)
427 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Function to populate student information | |
function populateStudentInfo() { | |
// Setting text for h3 elements using jQuery | |
$('#name').text('John Doe'); | |
$('#major').text('Computer Science'); | |
$('#year').text('Senior'); | |
// Setting HTML content for h4 element using jQuery | |
$('#location').html("<em>California</em>"); | |
} | |
// Call the function when document is ready | |
$(document).ready(populateStudentInfo); |