0

I am quite new in php and I wonder is it possible to create a textbox inside a button?
I wish the button consist of a textbox inside its value. Anyone can help me??

3
Contributors
8
Replies
9
Views
6 Years
Discussion Span
Last Post by jonadams51
0

I think its not possible with normal simple coding, It is somewhat complicated issue, which requires complex javascript code.

Why do you need such thing?

Edited by urtrivedi: n/a

0

i need to create a button with the value of "add _ row to table" where the "_" i wish to replace with a textbox. I tried several ways but still failed to do so. Can anyone please help me??

0

<input type=button name=btna id=btna value='add' >
<input type=textbox name=txt1 id=txt1 value ='' >
<input type=button name=btnb id=btnb value= 'row to table' >

0

This is what i currently use but I think it is better to combine both buttons.

0

This is the method I currently using but I think it is better to combine both buttons. Is it possible to do so?

0

If you use only one buton and no text box
We may change title of one button using javascript?

Edited by urtrivedi: n/a

0

but i need the users to key in how many rows do they wish to insert to the table.

1

Seems strange to me that your asking a user to decide what goes into your table. What you request is not possible using PHP, it would require some complex javascript.

If I was being forced to do this I'd probably create some sort of element (such as a div) that looks like a button with a text box and a button inside.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.