Jquery watch certain fields for certain values?

If I correct understood your question, here it is.

If I correct understood your question, here it is: set classes (for less JS code): 1 2 3 1 2 3 JS: $(function(){ $('input'). Click( function(){ if ( ($('. G1-2').

Is(':checked')) && ($('. G2-1'). Is(':checked')) && ($('.

Text').val()=="ok" )) { // event } }); }).

$(':radio'). Change(function() { if ($(this). Attr('name') == 'group2') $(':submit').

RemoveAttr('disabled'); }).

This will be fired even if the user changes the value and returned back to the original one, which is not what he is asking for. – Mohammed ElSayed Jun 28 at 15:01 there are some serious assumptions going on. All he asked was to be able to do something when a value changes, he didn't give a specification regarding the workflow or how.

Maybe I should have written pseudocode, so you guys didn't take it so literally. – bdparrish Jun 28 at 15:08.

You can use the click event hander. For e.g. : $(":radioname='group1',:radioname='group2',:radioname='group3'"). Live("click",function(){ //do something }).

This one did it for me :-) thanks – Lee Jun 28 at 15:05.

Sounds like a candidate for knockoutjs.com/ - You associate DOM elements with a client-side view model. When the data model's state changes, the UI updates automatically.

As much as I enjoy Knockout it might be a little overkill for this situation ...? Either way everyone should learn Knockout. – bdparrish Jun 28 at 14:59 Seems like a little overkill if the scenario presented is the only use case. – Michael Mior Jun 28 at 15:00.

If your jQuery selector matches more than one element, when you bind a callback function to an event, that function will be bound to all the elements the selector matches. Example: $('inputtype="radio"'). Change(function() { $('body').

Append('changed'); }); See a working fiddle here.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions