cancel
Showing results for 
Search instead for 
Did you mean: 

setAttribute & class name

Former Member
0 Kudos

Hi Experts,

I need help badly. I can't find help doc on setAttribute and class name to use.

I could not find clear documentation on setAttribute.

I just need to hide a dropdown box by javascript. Could anyone help?

Code I am using:

if (hidden) {

document.getElementById("TAB"+i).setAttribute('style', 'display:none;visibility:false;',false);

}

else {

document.getElementById("head_TAB"+i).setAttribute('className', 'SAPBEXTbsTABsel',false);

Where is the documentation for document. getElementById and setAttribute?

what className to use if its dropdown box?

Please help me!!!!!

Thanks!!!!

Shankell

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Shankell,

Did you look into the Web API 3.5 document?

If not, please let me know your mail id, and i will send you the document for reference.

Regards,

Xibi

Former Member
0 Kudos

Dear Xibi and Arun,

Thanks for the hints. Points awarded. I have Web Api 30B. But the 'attributes' mentioned seems to be for <param ...> . The Classname I was looking for is that for javascript setAttribute() command. Not sure if my understanding is correct.

my email is shankellpong@hotmail.com

Regards,

Shankell

former_member184494
Active Contributor
0 Kudos

Pong,

JavaScript and Classes ? you will find the function that you want in the MIME repository and you can find how the function behaves so that you can either change it or use your own.

Arun

Answers (1)

Answers (1)

former_member184494
Active Contributor
0 Kudos

Pong,

You will need to look for the same in the Mime repository...

SAP/Public/Mime/BeX/JavaScript

and another way to do the same is to execute the template ad view the source , you can find the source javascript file in the HTML.

Arun

Assigning points is a way of saying thank you on SDN

Message was edited by: Arun Varadarajan