How do I modify this jQuery :submit selector example?

Posted by Tommy on Stack Overflow See other posts from Stack Overflow or by Tommy
Published on 2010-04-13T19:21:25Z Indexed on 2010/04/13 19:33 UTC
Read the original article Hit count: 285

Looking at this jQuery example, how can I modify the code so that it only changes the color of the cell if the value of the submit button in that cell is a certain value.

i.e.-

          var submitEl = $("td :submit")

          //Only do the below if the submit buttons value is "XYZ"

          .parent('td')
          .css({background:"yellow", border:"3px red solid"})

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about web-development