akphidelt2007 Posted November 12, 2012 Share Posted November 12, 2012 (edited) 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 Edited November 12, 2012 by akphidelt2007 Quote Link to comment 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? Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.