Vote count:
0
I am building a website for my phone using JQuery mobile. I am using the "Filterable inside custom select" from the 1.4.5 demo.
It works when I manually add the option values in to the code.
<div class="ui-field-contain">
<select id="filter-menu" data-native-menu="false" class="filterable-select">
<option value="SFO">San Francisco</option>
<option value="LAX">Los Angeles</option>
It works when I create one from a php file.
<div class="ui-field-contain">
<select name="Position" id="Position" data-native-menu="false" class="filterable-select" data-mini="true">
<option value="<?php echo $PositionID ?>"><?php echo $position ?></option>
However when I populate more than one by looping them
foreach($getAllComp as $row)
{
$PosID = $row["CompanyID"];
$Pos = $row["Company"];
$AllPositions .= "<option value=\"".$row['CompanyID']."">".$row['Company']."</option>\n ";
}
I get the following error, TypeError: listview is undefined
it refers to
form = listview.jqmData( "filter-form" )
from the function supplied from the demo
I have tried moving the function to different places on my page etc. Maybe it just can't be done? Thanks in advance.
asked 14 secs ago
Filterable inside custom select error using php created select menu "option value"
Aucun commentaire:
Enregistrer un commentaire