is not working on Mozilla firefox. What to do?
]]>Thanks,
V
actually if we take login and signup buttons side by side and if we click on login button , the signup button background color should be disappeared and in the same way if we click on login button, signup button background color should be diasppeared /// send the code this as soonas possible
]]>I actually have a use case where this is needed. We have an application where a user is looking at an image of handwritten text on the left side of the screen, drawing a box, and typing what it says in the box (like a person’s name); and then that name appears in a person name field in the “structured data” view on the right. As they type on the left, it updates on the right. That works fine. We wish that it would look like a text edit field that has “focus” on both fields at once, so that the user could look either place and feel like it’s ok to edit there. Both would stay in sync. It’s just a convenience to the user to edit where they’re looking/thinking about it.
]]>I want to use focus event using inline css in input tag
]]>The label
is supposed to act like a button for this purpose. You can use it as follows:
<p><label for="message">Enter Message</label></p>
…
<p><textarea id="message" name="message"></textarea></p>
Alternatively, instead of (or as well as) the label above, you could add the following:
<button id="select-message">Message</button>
// inside initialisation script
document.getElementById('select-message').onclick=function() {
document.getElementById('message').focus();
}
Do I get extra credit for this?
]]>If it’s really a button, no, it can’t be done without JavaScript.
If you create a label
for the textarea
, then that’s exactly what it’s supposed to do. The label
and the textarea
don’t have to be next to each other as long as you give the textarea
an id
attribute, and use the for
attribute in the `label.
Using CSS, you can make the label
look any way you want, including the appearance of a button.
Autofocus works good but only once when page refreshes. I want to focus( cursor blink in text area) on every click on particular button.
]]>