<inputtype="text"name="name"placeholder="e.g. John Doe"> so in this example how can i pass placeholder value since this is mainted by umbraco code and that doesn't ask me the placeholder value.
Once i add a field in umbraco it asks me to enter caption and type of field it doesn't ask me to enter placeholder for that field so how can assign the placeholder value to the umbraco form field
Use Javascript function on form field
Hi
Could you please tell me how can i use the javascript function on umbraco form field.
I have to use "on blur" and " on focus" function on textfield.
Hi Abdullah,
Do you mean in the Umbraco admin part ?
Alex,
Thanks for revert but i didn't mean that.
I have a page with umbraco form.
In that page i have name and mobile field.
I want to attach a javascript function on both fields so how can i achieve the same.
Your help would be appreciated.
Hi Abdullah,
Can you use jquery ? Just found element in the DOM and attach event.
Thanks
ok, i'll do the same with jquery but can you please guid how can i achieve the following.
In my name textfield value should be prepopulated like "Name"
once i click in this field it should hide once i moves out of the field that value should come.
Abdullah, maybe you can try to use 'placeholder' attribute? If you need wider browsers support try to use jquery plugin - https://github.com/mathiasbynens/jquery-placeholder
Thanks, Alex
What do you mean ?
is working on a reply...