Monday, September 17, 2012

use a variable in tandem with a magic string when manipulating an element in jQuery

This...

if($(detail16+':selected').val() == "0") {

 

...is the way to do this with a variable...

if($('#whatever:selected').val() == "0") {

No comments:

Post a Comment