<
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 cols
// option changed to a custom value
new Ajax.InPlaceEditor(
'editableElement2',
{
// Specify the number of columns
// to be used in the InplaceEditor
cols: 5
}
);
// InplaceEditor with the cols
// option changed to a custom value
new Ajax.InPlaceEditor(
'editableElement3',
{
// Specify the number of columns
// to be used in the InplaceEditor
cols: 60
}
);
}
</
script
>
</
head
>
<
body
>
<
h1
style
=
"color: green"
>
GeeksforGeeks
</
h1
>
<
h2
>InPlaceEditor cols Option</
h2
>
<
p
>The "cols" option is used to specify
the number of columns to be used in
the InPlaceEditor.</
p
>
<
b
>This element has the cols as the
default value.</
b
>
<
div
id
=
"editableElement"
>Click to edit</
div
>
<
br
>
<
b
>This element has the cols set to 5.</
b
>
<
div
id
=
"editableElement2"
>Click to edit</
div
>
<
br
>
<
b
>This element has the cols set to 60.</
b
>
<
div
id
=
"editableElement3"
>
Click to edit multiline
</
div
>
</
body
>
</
html
>