jquery replace h1 with h2
$(selector).load(url, function(){ // your existing load function
$(selector).find('h1').replaceWith(function() {
return '<h2>' + $(this).text() + '</h2>';
});
});
Also in JavaScript:
- react bootstrap make col disapear in small screens
- jquery set checkbox checked unchecked
- trigger window resize
- cJSON_CreateObject
- if condition in class angular 8
- function redirect javascript
- makes number negative javascript
- javascript format number with commas
- function click anywhere javascript
- jquery when iframe is loaded
- how to compare elements in an array
- foreach await js
- javascript swap array elements
- how to get focused element in jquery
- lemon get node from id
- string check javascript
- s3 list objects in folder node js
- bootstrap npmjs
- colors in node js console
- testing a function in jest on click react
- check if the element exists in javascript
- how to make a variable equal a specific element in javascript
- express signed cookies
- get current date javascript full month