Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Get a value of input field widget using JavaScript help?

By
salman
on 3/1/15, 2:20 AM 951 views

I want create one input field and give a class as widget and get a value of it using javascript. this widget used more than once 

0
salman
On 3/1/15, 6:22 AM

                <input t-att-type="widget.password ? 'password' : 'text'"
                    t-att-id="widget.id_for_label"
                    t-att-tabindex="widget.node.attrs.tabindex"
                    t-att-autofocus="widget.node.attrs.autofocus"
                    t-att-placeholder="widget.node.attrs.placeholder"
                    t-att-maxlength="widget.field.size"
                    name="kladr_city"
                />

 t-att-id="widget.id_for_label" what is the meaning of this line

 

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/1/15, 2:20 AM
Seen: 951 times
Last updated: 3/16/15, 8:10 AM