Linked Questions

13 questions linked to/from onclick() and onblur() ordering issue
0 votes
0 answers
61 views

I am working on a search field component using Vue.js where I want to show a suggest box when an input field is focused and hide it when the input field loses focus. When a user clicks a suggestion it ...
12 votes
4 answers
21k views

By the following code I wish to "DO SOMETHING" on "ONBLUR" of element id="eg1" only if the onblur event was not caused due to "ONCLICK" on the submit button. $(document).ready(function() { ...
5 votes
4 answers
42k views

Iam printing some content using php code inside html but, when i tried to click on that div its not calling the function in onClick ?? Here is my php code echo '<div class="col-sm-12 col-xs-12 "...
4 votes
2 answers
7k views

I am trying to add a button to the Material UI autocomplete paper by overriding the PaperComponent prop and added a button at the button of the paper, but clicking on the button automatically closes ...
6 votes
2 answers
5k views

I have an input that contains a custom drop down menu. When you click on a menu item it should set the value of the input to the text of the item. I also want the menu to hide when the input loses ...
0 votes
3 answers
8k views

I am having a dropdown list with certain years and showing the current year by default. I want to set an onBlur event to close the dropdown when the user clicks outside. onBlur works fine but my ...
Ashok's user avatar
  • 1,036
1 vote
2 answers
2k views

I am working on a search component with auto-complete functionality and I am running into some strange behavior. The component consists of an input (SearchInput) and a list of type-ahead results (...
Nitax's user avatar
  • 480
-1 votes
1 answer
875 views

I am learning react and am building a little electronic store. I have this tab called "View Store". When a user clicks on it, I want a little "peek-a-boo" column to appear and let the user view some ...
0 votes
0 answers
135 views

I have an inputText field like this: <p:inputText value="#{backend.longAttribute}" converterMessage="Must be a number"> <p:ajax event="blur" update="something" /> </p:inputText> ...
0 votes
2 answers
80 views

I have reactJs app and I have made a custom dropDown with a div that I set an onClick attribute to open dropDown and close it. but also I want to close it when the user clicks to another part of the ...
-2 votes
1 answer
70 views

I have a dropdown & I need to use this dropdown multiple places in same page. My issue: after open any dropdown I'm not able to click on dropdown links. When I'm trying to click then dropdown is ...
0 votes
1 answer
90 views

I have a search field on my website, which is implemented using HTML input and regular div. Functionality for the user: The user can click on the input field -> start entering characters -> ...
Paul's user avatar
  • 287
0 votes
1 answer
59 views

I'm new in web apps development and new in Javascript. I have a hover drop down menu. The menu is build from Javascript and CSS. It's work fine in desktop browser but it's not work in mobile ...
Bubble Bub's user avatar