akphidelt2007 Posted November 12, 2012 Share Posted November 12, 2012 Ok, so here's my problem. I have a table class built in javascript using jquery. What I want to add to the class is select box functionality. I have been using ajax search type functionality which has worked, but now, I want to add an actual select box. So when a user double clicks on a cell, a select box pops up in the cell. When a user changes the select box it is easy and I can run a change event to submit the data to my db and update the cell. This also gets rid of the select box. My problem now, is the hypothetical event that a user double clicks the cell but does not change anything in the select box. What would be a possible strategy to allow the onchange event to trigger but also allow an "onblur" event to happen if the user does not select anything. I don't need all the coding, just a theory or help from anyone who knows how to do this. Thanks in advance Link to comment https://forums.phpfreaks.com/topic/270601-removing-a-select-drop-down-onchange-andor-onblur/ Share on other sites More sharing options...
Adam Posted November 12, 2012 Share Posted November 12, 2012 Hmm not sure I see the problem? You can register a separate callback to each event and do what you need to? Link to comment https://forums.phpfreaks.com/topic/270601-removing-a-select-drop-down-onchange-andor-onblur/#findComment-1391879 Share on other sites More sharing options...
akphidelt2007 Posted November 12, 2012 Author Share Posted November 12, 2012 Hmm not sure I see the problem? You can register a separate callback to each event and do what you need to? This is my bad, I did not bind correctly and the problem was happening within the code itself and not the logic. Sorry for wasting your guys time! Link to comment https://forums.phpfreaks.com/topic/270601-removing-a-select-drop-down-onchange-andor-onblur/#findComment-1391894 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.