What I want to do is create a dictionary in javascript and then use it in python. I have some dynamic inputs that have different attributes that I would like to put in a dictionary how can I do this?
I would like an output more or less if:
ditionary2 = {
'key': { u'type': u'TYPES', u'value': u'value', u'type_value': u'STR', u'mask': bool},
'key': { u'type': u'TYPES', u'value': u'value', u'type_value': u'TYPE_VALUES', u'mask': bool},
'key': { u'type': u'TYPES', u'value': u'value', u'type_value': u'TYPE_VALUES', u'mask': bool},
'key': { u'type': u'TYPES', u'value': u'value', u'type_value': u'TYPE_VALUES', u'mask': bool},
}
My html is like this:
<div class="margin_bot" id="itemRows1">
<p id="ProwNum1">
<input class="params margin_bot input_text input_size text_input span-11" tipo="LAM" type="text" name="par_1" value="password" placeholder="Valor">
<input class="params margin_bot input_text input_size text_input span-11" tipo="LAM" type="text" name="par_2" value="password2" placeholder="Valor">
</p>
</div>
And my javacript function looks like this:
function create_kapps_dict(selector, content){
var items = $('p[id^="ProwNum"]').find('.params').filter(':visible');
var post_settings = [];
items.forEach( )
}
But for some reason it is not functional