Skip to main content

All Questions

1 vote
0 answers
141 views

Is there a way to add text at cursor position in emojionarea library?

Here is the current code snippet that is adding the text in the end but I want it at the cursor position. <a href="#" class="aClass" data-text="Thank You">Test 1<...
hamzasgd's user avatar
  • 268
0 votes
1 answer
50 views

Obtain Related Div Text with jQuery

After bit of struggling and few valuable suggestions, I've come into a solution that works well as follows: $(document).ready(function(){ divs = $(".divs").children(); divs.each(function(e)...
AT-2017's user avatar
  • 3,149
1 vote
1 answer
451 views

How to recreate div

I have an html page contain a div called wowslider-container1. I want to recreate the elements inside the wowslider-container1 when the values of properties such as duration and delay change. If I ...
JohnMathew's user avatar
1 vote
1 answer
637 views

Validation input box and textarea

I want validate this tab content with jQuery, I want validate only second div with id='lang2'. How can I do this? <div class="tab-content "> <div id="lang1" class="tab-pane "> &...
Hela Halloula GS's user avatar
3 votes
1 answer
246 views

Very simple event driven jQuery plugin design pattern

Sometimes I have multiple elements which need a click callback function with some common functionality, and have implemented doing so as the following: function deleteRecord(elem, url, type) { if ...
user1032531's user avatar
  • 25.9k
0 votes
3 answers
629 views

How I can get <td name="pname"> values on Edit button click

On button click I add items in td which I have created with jQuery. $("#ddproduct").click(function () { $('#prodcuttable tr:last').after('<tr><td name="pname">' + prodName + '&...
Sohail Asghar's user avatar
0 votes
5 answers
3k views

Jquery click outside the element to hide other element

Haai. I have a problem. How to I hide this button when I click outside of <input type="search">. The button show when I click <input type="search">but I don't know how to hide the button ...
Bariq Dharmawan's user avatar
0 votes
1 answer
34 views

Different jQuery sources & versions in same page (googleapi, Code)

I have to pages, first for sortable list (li), which used the following Javascripts: <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" rel="stylesheet" ...
Hana90's user avatar
  • 925
12 votes
3 answers
392 views

How can I use jQuery for predefined events?

Are there any standard rules for implementing predefined events in a jQuery plugin? For example, the special case of Zebra Accordion plugin (a tiny accordion plugin for jQuery) or any other plugin ...
Mojtaba Reyhani's user avatar
0 votes
1 answer
107 views

Jquery direct event is not firing except delegate handler events like onclick?

I have created an application, there are lots of foods menus are there, while click the particular food items, the details,should be open under the panel with the food image. Inside the panel have an ...
Mohamed Sahir's user avatar
1 vote
1 answer
104 views

Write own Javascript plugins for creating audio player

I write my own Javascript plugins for creating an audio player. I created one in the AudioPlayer.js file: (function ($) { jQuery.fn.myPlayer = function (options) { ...
bksoni's user avatar
  • 363
0 votes
2 answers
4k views

jQuery onclick modal

I have created a form modal using jQuery: <ul class="loginbar pull-right"> <li class="hoverSelector"> <i class="fa fa-globe"></i> <a href="">Help<...
v. vamsi's user avatar
0 votes
1 answer
2k views

How can I use cubic bezier for scrolling

How can I use easing or cubic bezier for scrolling page with built in scroll in web browsers. Like this: https://draft.co.jp/en/aboutus
MEHRYĀR.S's user avatar
1 vote
2 answers
842 views

jQuery event delegation not working for some buttons

I am using the jQuery file upload plugin called bluimp. My 2 buttons (start, cancel) are forming dynamically so I can't attach a event listener to them. I have attached a listener to their nearest ...
Shivendra's user avatar
  • 1,096
-4 votes
1 answer
5k views

Prevent user to close tab or browser window [closed]

Is that possible to start a loop on window.onbeforeunload to open same current page again and again on tab exit? check following code, its working but browser blocking it as popup opening. ...
Saira Kanwal's user avatar

15 30 50 per page
1
2 3 4 5
8