I am not good with jQuery, so don't try and throw something foreign to me and change the entire code.
I want to use the buttons with icons, but the catch is that I am trying to use them with an input tag instead of a button tag. here's what I have in my script tag:
- <script>
- $(function() {
- $( "button:first" ).button({
- icons: {
- primary: "ui-icon-home"
- }
- }).next().button({
- icons: {
- primary: "ui-icon-locked"
- }
- }).next().button({
- icons: {
- primary: "ui-icon-gear",
- secondary: "ui-icon-triangle-1-s"
- }
- });
- });
- </script>
But I want to use them with <input> tags. What do I need to change in the script above for it to work? And to see what input tags I am working with, this is what I have in my body tag below:
- <input type="reset" value="Clear"/>
- <input type="submit" value="Login"/>
- <input type="button" value="Home"/>
Yes, I know I can use a <button> tag, but for my special case, I can't do what I want to do with that tag.