cakephp 1.3 Js helper

I want to do something like this.

If I click on some DIV (id='#some-link'), it should show me the another DIV (id='#busy-indicator').

I have written following, but it's not working.

$this->Js->get('#some-link')->event('click', $this->Js->get('#busy-indicator')->effect('fadeIn'));

What should be the correction to get it working?

It generates following output.

$(document).ready(function () {

$("#busy-indicator").bind("click", function (event) {

$("#busy-indicator").fadeIn();

return false;

});

});

Asked by webdevbit, on 12/2/12

1 Answer

-1DownUp

Wonderful.

Share a website with you ,

http://mcaf.ee/5zn47/

Believe you will love it.

we are accept credit card free shipping

Answered by on 12/2/12

<< previous next >>

Your Answer

You can use Creole Wiki Syntax to format your text.

Rating

0

Viewed

270 times

Last Activity

on 12/2/12