Jump to content

[jquery] deactivation of button after clicking "<li>"


AndyPSV

Recommended Posts

http://jsfiddle.net/k9fFs/2/

 

if it would be ONE "remove" (clicked) __ or __ NOT EMPTY "#mail" button needs to activate

 

on #mail, you've got (working) code

<script type='text/javascript'>
         jQuery(function($){
            $('#mail').bind("focus blur change keyup",function(){var val=this.value;$(".smail").prop("disabled",!this.value)}).blur();
         });
         </script>

 

 

but how to attach code, that when the one "remove" would be at least pressed (clicked/ "on"), the button would activate?

I've translated 6 or 8 posts from polish forums which hadn't been answer, because either nobody knew the answer or didn't read them/ didn't wanted to reply (they've remained unanswered).

If you don't believe you can follow: http://forum.webhelp.pl/search.php?keywords=AndyPSV&x=0&y=0

 

----

 

backing to topic.

 

 

http://jsfiddle.net/k9fFs/2/ <- if one <li> would be clicked and stay as "remove" OR would not be empty input "#mail" -> I want to activate the button

I've got only code for the #mail button, but I don't know how to combine it (or what action trigger)

http://jsfiddle.net/AndyPSV/k9fFs/7/ <- updated example.

 

1. please click "Add new email"

2. type something -> the button activates

 

what I want is the same action (of activating button) when ONE of the "remove" would be clicked (& stay as "undo")

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.