It load values with javascript

I have a web app and about a table I push in a raw to obtain its values, then I have to show it on a popup. The values that I recover are "input type=Date" and they are also "Select". When I try to show those datas on this popup in its corresponding component, I don´t know like make it. The values in the table are like this:

For example: I´m making with javascript this, and I want to load the values of the table in its component

<input id="warranty" type="date"/>

<select id="manufacturer" >
    <option value=""></option>
    <option value="windows">Windows</option>
    <option value="mac">Mac</option>
    <option value="linux">Linux</option>
    <option value="otro">Otro</option>
</select>

My javascript code is like this:

cutString = $(this).text().split ("\n");
...
$("#warranty").val(cutString[7].toString().trim());
document.getElementById("manufacturer").value = cutString[8].toString().trim();
...

But when I load the datas in popup it doesn´t load

Answers


Need Your Help

HTML submit only submitting itself

php html forms

first things first, english isn't my native language, so feel free to ask if I am being unclear.

angular js controller add remove() function

javascript angularjs

I would like to add a remove() function to my controller in angular js to where when the button is clicked, it removes that particular customer. Here is my codes:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.