Tag Archives: Change Text

Content

Get & Set Content: text() Make Text Appear / Change Text: html() / on(‘click’, function() {}) / text() Show Text when Clicked: append() / append() / append() Show Attribute Data when Clicked: append() Make Element Appear: show() / fadeIn() / css(‘prop’, ‘value’) Make Element Disappear: hide() / fadeOut() / css(‘prop’, … Continue reading

Posted in jQuery | Tagged , , , , , , , , , , , , , , , , , , , , , , , ,

Content

Find the character’s index position: charAt() Make Text Appear / Change Text: innerHTML / example Make Element Appear: style.display & style.visibility Make Element Disappear: style.display & style.visibility Copy Content: innerHTML Delete Content: innerHTML Add an Element: appendChild() + insertBefore Remove an Element: removeChild() or removeChild() Toggle Show/Hide Element: if-else Change CSS Style: style.prop / style properties … Continue reading

Posted in JavaScript | Tagged , , , , , , , , , , , , , , , , , , , , , , , , ,