Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

Hide delete button section 28.06.2015 14:13

Hi,

Please help me , code javascript to hide button delete only some section ?
Thank you

Re: Hide delete button section 29.06.2015 10:04

Hi,
you could use the function hide() to hide from user view any element of the calculator. If you insert the element inside a div with id="mydiv" for ex, you can hide it using:

CB("#mydiv").hide();


Hope this helps, regards
Moonsoft Team
www.moonsoft.es

Re: Hide delete button section 29.06.2015 23:21

Hi,

Okay for hide div class,
but I want to hide the button

"Remove"

i tried :

CB("#cb_delete").hide();

but not work

suggestion ?

thank you

Re: Hide delete button section 30.06.2015 09:50

Hi,

To hide all delete buttons, selector should be class:

CB(".cb_delete").hide();

This will hide all delete buttons in all sections in your page. But if you want to hide buttons only in some sections, you should enclosure your section in a div with id (for example id="mysection"), and then add it to selector:

CB("#mysection").find(".cb_delete").hide();

This will only hide delete buttons on section selected.

Regards,

Moonsoft Team
Moonsoft Team
www.moonsoft.es

Re: Hide delete button section 30.06.2015 19:51

Hi, thank you for reply
I tried both solution but not work.

CB(".cb_delete").hide();
CB("#mysection").find(".cb_delete").hide();

Re: Hide delete button section 01.07.2015 09:20

Hi,
are you/user creating sections dinamically? Then the js code won't affect, as it executes once as soon as the page is ready. If this is your case, you can try to add css classes instead. You can use any css present at the page, the calcbuilder one, or add styles directly at the js tab 'write directly in html page'. You can add there style tags with the classes needed.

Hope this helps, regards
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback