Questions tagged [jquery-ui-button]

The Button widget that forms part of the jQuery.UI library

Button is a widget that is a part of the jQuery-ui library.

API Documentation

95 questions
2
votes
2 answers

Add an image to the jquery button

I am wondering how to add an image to the jquery button. Till now I was using the jquery ui button in my project and I got custom images from the graphics team, so I would like to implement them. submit.button({ icons: {primary:'ui-icon-trash'},…
user525146
  • 3,918
  • 14
  • 60
  • 103
1
vote
1 answer

jquery Button, Knockout.js and an ajax request

I am using knockout.js with jquery ui button. I built a custom binding on the button which is below. I am changing the text on the click item, but I also have additional click that submits an ajax request. What is the best design pattern to set…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
1
vote
2 answers

jQuery buttonset refresh not working as I'd expected

OK - I have a function which I call to dynamically add a radio button as per this question. This is the full function: // function used to create a new radio button function createNewRadioButton( selector, …
james lewis
  • 2,486
  • 3
  • 24
  • 30
1
vote
2 answers

jQuery UI buttonset disabled constructor option not working

I have some buttonsets that contain radio inputs and want them to be disabled initially. Passing in the disabled option when constructing the buttonset doesn't work. $("#a").buttonset({disabled: true}); $("#b").buttonset({disabled:…
Michael
  • 5,994
  • 7
  • 44
  • 56
1
vote
2 answers

Jquery UI - Dialog close, which button was pressed

I am using a jquery ui dialog as a prompt. The "prompt" has to buttons, "Ok" and "Cancel". The problem here is, it extracts the input fields value in the dialog when .dialog("close") is triggered and my only validation is that the length of the…
Thor A. Pedersen
  • 1,122
  • 4
  • 18
  • 32
1
vote
5 answers

jQuery dialog buttons rebinding

I have a simple jQuery dialog box that has an html input inside it. There are two buttons Save/Cancel on the dialog box. When the user hits Save, I validate if he has provided any input in the input box. If he hasn't, I report the error on a new…
1
vote
1 answer

what if i want to add two icons to one button by using jquery-ui 1.12.0

$("#search_button").button({ icons: { "primary": 'ui-icon-search', "secondary": "ui-icon-triangle-1-s" }, }); "secondary": "ui-icon-triangle-1-s" can't be added to "#search_button"
Echo
  • 11
  • 1
1
vote
1 answer

Keyboard control of radio buttons made with JQuery UI Buttonset

The JQuery UI Buttons plugin seems to meet all my needs for replacing radio buttons, except that I lose keyboard control. Is there a way to tab between different sets of radio buttons and use the arrow keys to navigate which one is selected, just…
Tauren
  • 26,795
  • 42
  • 131
  • 167
1
vote
5 answers

Float and jQuery UI button

I used jQuery UI buttons in a project, and they have been working fine. But, in IE7, the icon doesn't float as it should. I realise IE doesn't have rounded corners support yet, but that is OK. Good browsersSome browsers render it fine IE sucks…
alex
  • 479,566
  • 201
  • 878
  • 984
1
vote
1 answer

How to show disabled state for a jqueryui button?

I am using Jquery UI buttons (http://jqueryui.com/demos/button/). I would like to know how I can show a disabled state. Show the button as greyed out or something, you know how when you post a form on some sites the submit button shows as disabled.…
user342391
  • 7,569
  • 23
  • 66
  • 88
1
vote
1 answer

jQuery UI buttonset() Not Responding As It Should?

I'm a newbie to the jQuery UI plugin and I'm building a demo application to test my knowledge. I'm using the radio button add-on and I can't seem to get it working. I have the following line in a function called when the body…
esqew
  • 42,425
  • 27
  • 92
  • 132
1
vote
2 answers

jquery-ui buttonset click event doesn't seem to change the checked state

I am using a jquery-ui buttonset with 2 radio buttons for yes/no input. var yesInput = document.createElement("input"); yesInput.type = "radio"; $(yesInput).attr('id', "njs1"); $(yesInput).prop('checked', this._data); var noInput =…
Nihar Sarangi
  • 4,845
  • 8
  • 27
  • 32
1
vote
1 answer

jquery UI dialog and button refresh

well i'm back... i'm trying to make jquery UI's button and dialog plugins work with my form. i want the reset button to pull up a confirmation dialog, which it does. cancel should…
helgatheviking
  • 25,596
  • 11
  • 95
  • 152
1
vote
1 answer

jQuery calculator not working in IE. Looks great in other browsers

Thought I had this calculator done. It looked awesome, until I viewed it in IE. Can you guys take a look and let me know why it's all kinds of screwed up? Look at it in IE and in another browser for comparison. Just scroll down to "Payment…
1
vote
0 answers

Issue with jquery buttonset

"cannot call methods on button prior to initialization; attempted to call method 'widget' " On the first time load the buttonset() works fine. On the second load the entire UI freezes and I get this exception; After researching and googling for…
John Smith
  • 1,095
  • 2
  • 11
  • 24