in reply to Re^2: Perl and jQuery to select mutiple elements from dropdown by checking checkboxes (multipeColorSelect.pl)
in thread Perl and jQuery to select mutiple elements from dropdown by checking checkboxes

I dont want perl function to print some html stuff. I want jQuery as I showed in my code. But, when checkbox is checked, how do we call values from hash?
  • Comment on Re^3: Perl and jQuery to select mutiple elements from dropdown by checking checkboxes (multipeColorSelect.pl)

Replies are listed 'Best First'.
Re^4: Perl and jQuery to select mutiple elements from dropdown by checking checkboxes (multipeColorSelect.pl)
by Corion (Patriarch) on Oct 22, 2014 at 11:58 UTC

    You are aware that the jQuery function does not run on your server?

    You can make a jQuery.get() (or jQuery.ajax()) request to load data that is served from Perl. But this is Perlmonks, not jQuerymonks, so for programming Javascript and jQuery, you have to go somewhere else.

Re^4: Perl and jQuery to select mutiple elements from dropdown by checking checkboxes (multipeColorSelect.pl)
by perlron (Pilgrim) on Oct 22, 2014 at 13:04 UTC
    can i interject to recommend the Template Toolkit for you to conditionally display select options based on the checkbox value outside the perl script.

    Is jQuery a client/customer requirement, or is it something u can replace ? Using TT, every time u need to tweak your display logic, you dont have to look at changing your perl code.