歪歪李玲最新章节_歪歪李玲最新章节,舒盼顾绍霆小说免费阅读最新章节免费阅读_舒盼顾绍霆小说

发布日期:2021年12月03日
jQuery dblclick() method

Thedblclick() method is used to trigger a dblclick event or attach a function to execute on double-clicking the element. The event occurs when an element is clicked twice in a very short span of time. It is an inbuilt method in jQuery.

Syntax

We can either simply use the dblclick() method or can add a function to the dblclick event. The syntax of using the dblclick() method is given as follows -

Trigger the event for the selected elements

Attach a function

Theselector in the above syntax is the selected element. The parameter function mentioned in the above syntax is optional. It is a function to execute when the dblclick event occurs. The attached function performs a specific task on double-clicking the element.

Let's see some illustrations of using the dblclick()method.

Example1

It is a simple example of using the dblclick() method. Here, on double-clicking the given paragraph with the text Click me, an alert box will be displayed showing some message.

Test it Now

Output

歪歪李玲最新章节_歪歪李玲最新章节,舒盼顾绍霆小说免费阅读最新章节免费阅读_舒盼顾绍霆小说 After the execution of the above code, the output will be -

jQuery dblclick() method

After clicking the text Click me, the output will be -

jQuery dblclick() method

Example2

It is another example of the dblclick() method. Here, on double-clicking the paragraph with the text Click me twice, the style and text of the paragraph will get changed.

Test it Now

Output

After the execution of the above code, the output will be -

jQuery dblclick() method

After clicking the text Click me twice, the output will be -

jQuery dblclick() method




Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebooktwitterpinterest歪歪李玲最新章节_歪歪李玲最新章节,舒盼顾绍霆小说免费阅读最新章节免费阅读_舒盼顾绍霆小说

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA