0

I have a method like this;

 $('.kaldir').click(function () {
        var thisCheck = $(this);
        ..... 
  }

and my html input(s) like this;

<input type="radio" name="chbBesDiger" class="kaldir" id="chbBeslenme" value="Beslenme" />

this method is working well, but I need to run $('.kaldir').click() method for just chbBeslenme input with jquery code,

I tried,

$("#chbBeslenme").click() 
           or 
$("#chbBeslenme .kaldir").click()

but it didn't work. How can i do that ?

John Dvorak
  • 26,799
  • 13
  • 69
  • 83
user183443
  • 35
  • 3

2 Answers2

0

Use .trigger() http://api.jquery.com/trigger/

$( ".kaldir" ).trigger( "click" );
Boris Gappov
  • 2,483
  • 18
  • 23
0
$("#chbBeslenme").trigger('click');

OR

$("#chbBeslenme .kaldir").trigger('click');
coolguy
  • 7,866
  • 9
  • 45
  • 71