Jump to content

2 функции в 1 кнопки


Recommended Posts

Вопрос к программистам)

Можно в такой кнопке подключить функции?

<button type="button" class="close true" data-dismiss="modal" aria-label="Close" onclick="document.getElementById('popup1<?php echo $wp_home_id; ?>').style.display='none';">x</button>

и еще overlay_popup<?php echo $wp_home_id; ?>

 

Это кнопка закрытия всплывающего окна.

Link to post
Share on other sites

Есть вопрос? Задай его профессиональным веб-мастерам, SEO и другим специалистам!

  • Модератор

Попробуйте так:

<button type="button" class="close true" data-dismiss="modal" aria-label="Close" onclick="overlay_popup<?php echo $wp_home_id; ?>;document.getElementById('popup1<?php echo $wp_home_id; ?>').style.display='none';">x</button>

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...