How add css attributes in button_tag?

Stefan Hansch

I have next helper

= button_tag :type => "button", { "Add", :id => "poll-btn", :class => "btn-bg" }

Syntaxis is incorrect. How correct add css attributes(id, class) with type and content? Sorry for very easy and stupid quation.

asiniy
= button_tag 'Add', type: 'button', id: 'poll-btn', class: 'btn-bg'

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do you add an icon to a button_tag using HAML?

From Dev

How do I add attributes to an HTML tag

From Dev

how to add data-attributes to snapengage button

From Dev

Button not taking css attributes

From Dev

how to add css for div tag

From Dev

how to add css for div tag

From Dev

How to add python keyword terms as tag attributes in lxml?

From Dev

How to add custom attributes to head tag in js Fiddle?

From Dev

How to add attributes to Jinja2's rendered tag

From Dev

How can I add attributes to an img tag to use in an ajax call

From Dev

how to Add two android:name attributes to Application tag in Manifest file?

From Dev

how to add jquery data attributes in rails image_tag

From Dev

How can I add attributes to an img tag to use in an ajax call

From Dev

How to add python keyword terms as tag attributes in lxml?

From Dev

How to add multiple classes and attributes to rails button_to?

From Dev

Attempting to add a button_tag in rails causes unexpected tIDENTIFIER syntax error

From Dev

How to add attributes to custom elements?

From Dev

JQ: how to add attributes to input

From Dev

How to dynamically add attributes to an interface

From Dev

How add attributes to catalog page

From Dev

How to change CSS attributes in React?

From Dev

how to add logos to following span tag in css

From Dev

How to add Button over image using CSS?

From Dev

CSS How to add a button below an image

From Dev

how to add hover effect to button using css

From Dev

Automatically add width and height attributes to image tag

From Dev

Automatically add width and height attributes to image tag

From Dev

How to neglect automatically generated attributes and add new attributes in its place?

From Dev

how do you add attributes to script tag in jade e.g. async defer

Related Related

  1. 1

    How do you add an icon to a button_tag using HAML?

  2. 2

    How do I add attributes to an HTML tag

  3. 3

    how to add data-attributes to snapengage button

  4. 4

    Button not taking css attributes

  5. 5

    how to add css for div tag

  6. 6

    how to add css for div tag

  7. 7

    How to add python keyword terms as tag attributes in lxml?

  8. 8

    How to add custom attributes to head tag in js Fiddle?

  9. 9

    How to add attributes to Jinja2's rendered tag

  10. 10

    How can I add attributes to an img tag to use in an ajax call

  11. 11

    how to Add two android:name attributes to Application tag in Manifest file?

  12. 12

    how to add jquery data attributes in rails image_tag

  13. 13

    How can I add attributes to an img tag to use in an ajax call

  14. 14

    How to add python keyword terms as tag attributes in lxml?

  15. 15

    How to add multiple classes and attributes to rails button_to?

  16. 16

    Attempting to add a button_tag in rails causes unexpected tIDENTIFIER syntax error

  17. 17

    How to add attributes to custom elements?

  18. 18

    JQ: how to add attributes to input

  19. 19

    How to dynamically add attributes to an interface

  20. 20

    How add attributes to catalog page

  21. 21

    How to change CSS attributes in React?

  22. 22

    how to add logos to following span tag in css

  23. 23

    How to add Button over image using CSS?

  24. 24

    CSS How to add a button below an image

  25. 25

    how to add hover effect to button using css

  26. 26

    Automatically add width and height attributes to image tag

  27. 27

    Automatically add width and height attributes to image tag

  28. 28

    How to neglect automatically generated attributes and add new attributes in its place?

  29. 29

    how do you add attributes to script tag in jade e.g. async defer

HotTag

Archive