Skip to main content

madsmads

Member since Sep 2, 2010

Recent Blog Comments By madsmads

  • Using jQuery To Leverage The OnChange Method Of Inputs

    Posted on Sep 6, 2010 at 3:30 AM

    Hi again! It works now. Now I just need to figure out how to refresh the page asynchronously when the changes are made to the cookie. The code that worked for me looks like this: $(document).ready(function() { var jInput = $(":input"); jInput.change(function() { var ... read more »

  • Using jQuery To Leverage The OnChange Method Of Inputs

    Posted on Sep 4, 2010 at 3:00 PM

    @Ben, Yeah, I realised that as well, so the code now looks like this: $(InitPage); function initPage() { var jInput = $(":input"); jInput.change(function( objEvent ) { var itemAmount = $(this).val(); var itemID = $(this).siblings("input#itemID"... read more »

  • Using jQuery To Leverage The OnChange Method Of Inputs

    Posted on Sep 2, 2010 at 11:16 AM

    Woops, the 7th line of the code is of course as follows: var itemID = $(this).siblings("input#itemID ").val();... read more »

  • Using jQuery To Leverage The OnChange Method Of Inputs

    Posted on Sep 2, 2010 at 11:14 AM

    Hi Ben! Nice blog, lot's of good content. I have a question regarding the .change() event. I have a shopping cart, which automatically adds some <input> fields, with dynamic values (it extracts values from a cookie, and assigns the different values to the input fields). Now, here's the prob... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel