Sharon Christine has Published 461 Answers

HTML DOM Select value Property

Sharon Christine

Sharon Christine

Updated on 01-Jul-2020 09:24:03

The HTML DOM select value property returns and modify the content of the value attribute of a drop-down list.SyntaxFollowing is the syntax −Returning valueobject.valueModifying valueobject.value = true | falseExampleLet us see an example of HTML DOM select value property − Live Demo<!DOCTYPE html> <html> <head> <style>    html{       ... Read More

HTML DOM Input Number defaultValue Property

Sharon Christine

Sharon Christine

Updated on 01-Jul-2020 09:09:23

The HTML DOM input number defaultValue property returns and modify the default value of input field of type=”number” in a HTML document.SyntaxFollowing is the syntax minus;Returning default valueobject.defaultValuemodifying default valueobject.defaultValue=”number”ExampleLet us see an example of HTML DOM input number defaultValue property− Live Demo<!DOCTYPE html> <html> <head> <style>    html{     ... Read More

HTML DOM Input Number max Property

Sharon Christine

Sharon Christine

Updated on 01-Jul-2020 09:07:47

The HTML DOM input number max property returns and modify the value of the max attribute of the input field of type=”number” in an HTML document.SyntaxFollowing is the syntax −Returning maxobject.max2. Modifying maxobject.max = “number”ExampleLet us see an example of input number max property − Live Demo<!DOCTYPE html> <html> <head> <style> ... Read More

HTML DOM Input Number min Property

Sharon Christine

Sharon Christine

Updated on 01-Jul-2020 09:06:23

The DOM input number min property returns and modify the value of the min attribute of the input field of type=”number” in an HTML document.SyntaxFollowing is the syntax −Returning minobject.min2. Modifying minobject.min = “number”ExampleLet us see an example of HTML DOM input number min property − Live Demo<!DOCTYPE html> <html> <head> ... Read More

HTML DOM Input Number autofocus Property

Sharon Christine

Sharon Christine

Updated on 01-Jul-2020 08:55:59

The HTML DOM input number autofocus property returns and modify whether the input number field should get focused or not when page load.SyntaxFollowing is the syntax −Returning autofocusobject.autofocus2. Modifying autofocusobject.autofocus = true | falseExampleLet us see an example of HTML DOM input number autofocus property − Live Demo<!DOCTYPE html> <html> <head> ... Read More

HTML DOM Input Number disabled Property

Sharon Christine

Sharon Christine

Updated on 01-Jul-2020 08:10:33

The HTML DOM input number disabled property returns and modify whether the input field of type=”number” in an HTML document is disabled or not.SyntaxFollowing is the syntax −Returning disabledobject.disabledModifying disabledobject.disabled = true | falseExampleLet us see an example of HTML DOM input number disabled property − Live Demo<!DOCTYPE html> <html> <head> ... Read More

HTML DOM Input Number name Property

Sharon Christine

Sharon Christine

Updated on 01-Jul-2020 08:06:10

The HTML DOM input number name property returns and modify the value of the name attribute of the input field of type=”number” in a HTML document.SyntaxFollowing is the syntax −1. Returning nameobject.name2. Modifying nameobject.name = “text”ExampleLet us see an example of HTML DOM input number name property − Live Demo<!DOCTYPE html> ... Read More

HTML DOM Input Number readOnly Property

Sharon Christine

Sharon Christine

Updated on 01-Jul-2020 07:58:12

The HTML DOM input number readOnly property returns and modify whether the input number field is read-only or not in an HTML document.SyntaxFollowing is the syntax −Returning readOnlyobject.readOnlyModifying readOnlyobject.readOnly = true | falseExampleLet us see an example of input number readOnly property − Live Demo<!DOCTYPE html> <html> <head> <style>    html{ ... Read More

HTML DOM id Property

Sharon Christine

Sharon Christine

Updated on 30-Jun-2020 15:36:01

The HTML DOM id property returns and allow us to set id of an HTML element.SyntaxFollowing is the syntax −1. Returning idobject.id2. Setting idobject.id=”value”Here, “value” represents the id of an element.ExampleLet us see an example of id property − Live Demo<!DOCTYPE html> <html> <head> <style>    p{       background-color:#347924; ... Read More

Swap data between two columns in MySQL?

Sharon Christine

Sharon Christine

Updated on 30-Jun-2020 15:06:56

To swap data between two columns in MySQL, use the concept of variable. Let us first create a table. Here, we will swap Name1 with Name2 −mysql> create table DemoTable -> ( -> Name1 varchar(100), -> Name2 varchar(100) -> ); Query OK, 0 rows affected (0.58 sec)Insert some records in ... Read More

Advertisements