<!DOCTYPE html>
<
html
>
<
head
>
<
script
type
=
"text/javascript"
src
=
"prototype.js"
>
</
script
>
<
script
type
=
"text/javascript"
src
=
"scriptaculous.js?load = controls"
>
</
script
>
<
script
type
=
"text/javascript"
>
window.onload = function () {
// Default InplaceEditor with no
// options
new Ajax.InPlaceEditor(
'editableElement',
);
// InplaceEditor with the rows
// option changed to a custom value
new Ajax.InPlaceEditor(
'editableElement2',
{
// Specify the number of rows
// to be used in the InplaceEditor
rows: 3
}
);
// InplaceEditor with the rows
// option changed to a custom value
new Ajax.InPlaceEditor(
'editableElement3',
{
// Specify the number of rows
// to be used in the InplaceEditor
rows: 8
}
);
}
</
script
>
</
head
>
<
body
>
<
h1
style
=
"color: green"
>
GeeksforGeeks
</
h1
>
<
h2
>InPlaceEditor rows Option</
h2
>
<
p
>
The "rows" option is used to specify
the number of rows to be used in the
InPlaceEditor.
</
p
>
<
b
>
This element has the rows as the
default one.
</
b
>
<
div
id
=
"editableElement"
>Click to edit</
div
>
<
br
>
<
b
>This element has the rows set to 3 rows.</
b
>
<
div
id
=
"editableElement2"
>Click to edit</
div
>
<
br
>
<
b
>This element has the rows set to 8 rows.</
b
>
<
div
id
=
"editableElement3"
>Click to edit</
div
>
</
body
>
</
html
>